minor fix

This commit is contained in:
js0ny 2025-03-14 14:15:51 +00:00
parent a9a91b586b
commit 0d6e24aa61
3 changed files with 14 additions and 12 deletions

View file

@ -72,13 +72,15 @@ vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,
vim.o.mousemoveevent = true
-- Hide zero-width space
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function()
vim.opt_local.conceallevel = 2
vim.cmd([[
syntax match ZeroWidthSpace /\%u200b/ conceal
highlight link ZeroWidthSpace Conceal
]])
end,
})
-- vim.api.nvim_create_autocmd("FileType", {
-- pattern = "*",
-- callback = function()
-- vim.opt_local.conceallevel = 2
-- vim.cmd([[
-- syntax match ZeroWidthSpace /\%u200b/ conceal
-- highlight link ZeroWidthSpace Conceal
-- ]])
-- end,
-- })
vim.fn.matchadd("Conceal", [[\%u200b]], 10, -1, { conceal = "" })