show whitespaces

This commit is contained in:
Joel Lau 2024-02-26 10:04:41 +08:00 committed by Joel Lau
parent 29675d06e8
commit a48d5688e1
No known key found for this signature in database
GPG key ID: C2A155B2D3A77578
2 changed files with 19 additions and 10 deletions

View file

@ -423,6 +423,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