show whitespaces

This commit is contained in:
Joel Lau 2024-02-26 10:04:41 +08:00
parent 0bfcdee466
commit c5f34d0b62
No known key found for this signature in database
GPG key ID: D513A40A19DC2F69
2 changed files with 19 additions and 10 deletions

View file

@ -316,6 +316,15 @@ vim.g.encoding = 'UTF-8'
vim.g.fileencoding = 'UTF-8'
vim.g.scriptencoding = 'UTF-8'
-- Show Whitespace Characters
vim.opt.list = true
vim.opt.listchars:append({ eol = '§' });
vim.opt.listchars:append({ tab = '¤›' });
vim.opt.listchars:append({ extends = '»' });
vim.opt.listchars:append({ precedes = '«' });
vim.opt.listchars:append({ nbsp = '' });
vim.opt.listchars:append({ space = '·' });
-- Set highlight on search
vim.o.hlsearch = false