-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Icon style color are not maintained after entering normal mode #1472
Comments
When I go into normal mode in a heading line, the concealer disables and I see What happens for me is the expected behavior afaik. |
@benlubas That's what I would expect but the opposite happens, I didn't have those problems in version 7. I disabled treesitter, but the problem prevails, so I came to the conclusion that the error is part of this plugin |
Yeah I can't reproduce it. I'd recommend making a minimal config, and if you still see it happening then I can try the minimal config, otherwise it's likely something specific to your config. |
@benlubas The initial error is already solved, now the error is that when I am in normal mode the color of the icon changes, when I defined it with another color |
catppuccin config: ["@neorg.lists.unordered.prefix.norg"] = { fg = C.mauve },
["@neorg.headings.1.title.norg"] = { fg = C.pink },
["@neorg.headings.1.prefix"] = { fg = C.pink },
["@neorg.headings.1.prefix.norg"] = { fg = C.pink },
["@neorg.links.location.heading.1.norg"] = { fg = C.pink },
["@neorg.headings.2.title.norg"] = { fg = C.yellow },
["@neorg.headings.2.prefix"] = { fg = C.yellow },
["@neorg.headings.2.prefix.norg"] = { fg = C.yellow },
["@neorg.links.location.heading.2.norg"] = { fg = C.yellow },
["@neorg.headings.3.title.norg"] = { fg = C.sky },
["@neorg.headings.3.prefix"] = { fg = C.sky },
["@neorg.headings.3.prefix.norg"] = { fg = C.sky },
["@neorg.links.location.heading.3.norg"] = { fg = C.sky },
["@neorg.headings.4.title.norg"] = { fg = C.green },
["@neorg.headings.4.prefix"] = { fg = C.green },
["@neorg.headings.4.prefix.norg"] = { fg = C.green },
["@neorg.links.location.heading.4.norg"] = { fg = C.green },
["@neorg.headings.5.title.norg"] = { fg = C.lavender },
["@neorg.headings.5.prefix"] = { fg = C.lavender },
["@neorg.headings.5.prefix.norg"] = { fg = C.lavender },
["@neorg.links.location.heading.5.norg"] = { fg = C.lavender }, Neorg config: {
"nvim-neorg/neorg",
dependencies = { "luarocks.nvim", "nvim-neorg/neorg-telescope" },
cmd = "Neorg",
ft = "norg",
keys = {
{
neorg_leader .. "o",
function()
if neorg_enabled then
vim.cmd.Neorg "return"
neorg_enabled = false
return
end
vim.cmd.Neorg.workspace "notes"
neorg_enabled = true
end,
desc = "Toggle org notes",
},
{
neorg_leader .. "c",
function()
vim.cmd.Neorg "toggle-concealer"
end,
desc = "Toggle highlighting org",
},
{
neorg_leader .. "tt",
function()
-- if vim.w.toc_open then
-- vim.api.nvim_win_close(vim.w.win_toc, false)
-- vim.w.toc_open = false
-- return
-- end
vim.cmd.Neorg "toc"
vim.cmd "vert resize 60"
-- vim.w.win_toc = vim.api.nvim_win_get_number(0)
-- vim.w.toc_open = true
end,
desc = "Toggle highlighting org",
},
},
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
["core.integrations.nvim-cmp"] = {},
["core.concealer"] = {
config = {
icon_preset = "basic",
-- icon_preset = "diamond",
icons = {
code_block = {
conceal = true,
},
delimiter = {
horizontal_line = {
icon = "■",
},
},
-- todo = {
-- cancelled = { icon = "🚫" },
-- done = { icon = "✅" },
-- undone = { icon = "🕒" },
-- on_hold = { icon = "⏸️" },
-- pending = { icon = "⏳" },
-- recurring = { icon = "🔄" },
-- uncertain = { icon = "❓" },
-- urgent = { icon = "🚨" },
-- },
definition = {
single = { icon = "" },
multi_prefix = { icon = " " },
multi_suffix = { icon = " " },
},
list = {
icons = { "" },
},
quote = {
icons = { "" },
},
heading = {
icons = { "🌸 ", "🌼 ", "💠 ", "🍀 ", "", "❁ " },
},
},
},
},
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
notes = "~/Documentos/Org/Notes",
},
},
},
["core.keybinds"] = {
config = {
neorg_leader = neorg_leader,
hook = function(keybinds)
keybinds.map_event_to_mode("norg", {
n = { -- Bind keys in normal mode
{
neorg_leader .. "fl",
"core.integrations.telescope.find_linkable",
opts = { desc = "Find linkable" },
},
{
neorg_leader .. "fh",
"core.integrations.telescope.search_headings",
opts = { desc = "Search headings" },
},
{
neorg_leader .. "fi",
"core.integrations.telescope.insert_link",
opts = { desc = "Insert link" },
},
{
neorg_leader .. "ff",
"core.integrations.telescope.insert_file_link",
opts = { desc = "Insert link" },
},
{ "]l", "core.integrations.treesitter.next.link", opts = { desc = "Next link" } },
{ "[l", "core.integrations.treesitter.previous.link", opts = { desc = "Previous link" } },
},
i = { -- Bind in insert mode
{ "<C-l>", "core.integrations.telescope.insert_link", opts = { desc = "Insert link" } },
},
}, {
silent = true,
noremap = true,
})
end,
},
},
["core.summary"] = {},
["core.export"] = {},
["core.integrations.telescope"] = {},
["core.ui.calendar"] = {},
},
}
end,
}, |
Prerequisites
Neovim Version
v0.10.0
Neorg setup
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "norg", "norg_meta" })
end
end,
},
{
"nvim-neorg/neorg",
version = "*", -- Pin Neorg to the latest stable release
dependencies = { "luarocks.nvim", "nvim-neorg/neorg-telescope" },
cmd = "Neorg",
ft = "norg",
keys = {
{
neorg_leader .. "o",
function()
if neorg_enabled then
vim.cmd ":Neorg return"
neorg_enabled = false
return
end
vim.cmd "Neorg workspace notes"
neorg_enabled = true
end,
desc = "Toggle org notes",
},
{
neorg_leader .. "tt",
function()
-- if vim.w.toc_open then
-- vim.api.nvim_win_close(vim.w.win_toc, false)
-- vim.w.toc_open = false
-- return
-- end
vim.cmd "Neorg toc"
vim.cmd "vert resize 60"
-- vim.w.win_toc = vim.api.nvim_win_get_number(0)
-- vim.w.toc_open = true
end,
desc = "Toggle highlighting org",
},
},
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
["core.integrations.nvim-cmp"] = {},
["core.concealer"] = {
config = {
-- icon_preset = "basic",
icon_preset = "diamond",
icons = {
code_block = {
conceal = true,
},
-- heading = {
-- icons = { "🌸", "🌼", "🏵️", "❇️", "💠", "◉" },
-- },
},
},
},
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
notes = "~/Documentos/Org/Notes",
},
},
},
["core.keybinds"] = {
config = {
neorg_leader = neorg_leader,
hook = function(keybinds)
keybinds.map_event_to_mode("norg", {
},
Actual behavior
Icons are not consistent between different modes
Expected behavior
Icons are expected to always be the same
Steps to reproduce
Open Org and hover heading
Potentially conflicting plugins
No response
Other information
No response
Help
Yes
Implementation help
No response
The text was updated successfully, but these errors were encountered: