show whitespaces

This commit is contained in:
Joel Lau 2024-02-26 09:44:14 +08:00
parent 23e3bee7d3
commit 0bfcdee466
No known key found for this signature in database
GPG Key ID: D513A40A19DC2F69
1 changed files with 14 additions and 4 deletions

View File

@ -330,6 +330,15 @@ vim.o.mouse = 'a'
-- See `:help 'clipboard'`
vim.o.clipboard = 'unnamedplus'
-- 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 = '·' });
-- Enable break indent
vim.o.breakindent = true
@ -471,7 +480,8 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' },
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim',
'bash' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,