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:
parent
e701dd06ea
commit
01d7ead121
|
@ -66,6 +66,7 @@ in
|
||||||
lightline-lsp
|
lightline-lsp
|
||||||
lsp_lines-nvim # Show diagnostics *over* regions
|
lsp_lines-nvim # Show diagnostics *over* regions
|
||||||
null-ls-nvim # LSP integration for linters and formatters
|
null-ls-nvim # LSP integration for linters and formatters
|
||||||
|
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) # Better highlighting
|
||||||
plenary-nvim # 'null-ls' dependency
|
plenary-nvim # 'null-ls' dependency
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
13
home/vim/plugin/settings/tree-sitter.vim
Normal file
13
home/vim/plugin/settings/tree-sitter.vim
Normal 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
|
Loading…
Reference in a new issue