mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
minor fix
This commit is contained in:
parent
a9a91b586b
commit
0d6e24aa61
3 changed files with 14 additions and 12 deletions
|
|
@ -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 = "" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue