home: vim: add 'nvim-treesitter'

IMHO, this is *very* colorful, I might not end up using the highlighting
after all.

Let's see if I get used to it after a little while.
This commit is contained in:
Bruno BELANYI 2022-02-26 12:26:49 +01:00
parent e701dd06ea
commit 01d7ead121
2 changed files with 14 additions and 0 deletions

View file

@ -66,6 +66,7 @@ in
lightline-lsp
lsp_lines-nvim # Show diagnostics *over* regions
null-ls-nvim # LSP integration for linters and formatters
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) # Better highlighting
plenary-nvim # 'null-ls' dependency
];

View file

@ -0,0 +1,13 @@
lua << EOF
local ts_config = require("nvim-treesitter.configs")
ts_config.setup({
highlight = {
enable = true,
-- Avoid duplicate highlighting
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
},
})
EOF