enable nvim treesitter
enable hcl treesitter
This commit is contained in:
parent
9100bfe06d
commit
c0ee34bb94
2 changed files with 22 additions and 0 deletions
13
roles/neovim/files/plugin/treesitter.lua
Normal file
13
roles/neovim/files/plugin/treesitter.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
||||
ensure_installed = { "c", "lua", "vim", "help", "hcl" },
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = false,
|
||||
|
||||
highlight = {
|
||||
-- `false` will disable the whole extension
|
||||
enable = true,
|
||||
},
|
||||
}
|
Reference in a new issue