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
c3b0b9c607
commit
bbc32d6030
|
@ -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
|
||||
];
|
||||
|
||||
|
|
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