core.concealer affecting non-note files? #1638
Unanswered
alecjohanson
asked this question in
Q&A
Replies: 2 comments
-
You can configure the conceal options to only affect vim.api.nvim_create_autocmd("FileType", {
pattern = "norg",
callback = function()
vim.opt_local.conceallevel = 2
vim.opt_local.concealcursor = 'nc'
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think I'm misunderstanding that command. Having Neorg installed appears that it is globally(?) enabling the concealer. Therefore, the autocmd enables it a "second time" to only 'norg' files. Adding that autocmd to my init.lua does not prevent the concealer from applying to non-'norg' files. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I have neorg enabled, other files are being rendered with a concealer. For example, json files remove quotes.
If is disable neorg, this goes away.
Is there a way to make the concealer only affect files in the notes folders? Should that be the default?
Beta Was this translation helpful? Give feedback.
All reactions