added treesitter
This commit is contained in:
parent
2bae5dd6c1
commit
bc9052d035
1 changed files with 17 additions and 0 deletions
17
lua/Dario48/plugins/treesitter.lua
Normal file
17
lua/Dario48/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
return {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = function()
|
||||||
|
require("nvim-treesitter.install").update({ with_sync = true })()
|
||||||
|
end,
|
||||||
|
config = function ()
|
||||||
|
local configs = require("nvim-treesitter.configs")
|
||||||
|
|
||||||
|
configs.setup({
|
||||||
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "query" },
|
||||||
|
sync_install = false,
|
||||||
|
auto_install = true,
|
||||||
|
highlight = { enable = true, additional_vim_regex_highlighting = false },
|
||||||
|
indent = { enable = true },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue