50 lines
949 B
Lua
50 lines
949 B
Lua
-- Homepage: https://github.com/nvim-treesitter/nvim-treesitter
|
|
|
|
-- What is this?
|
|
-- Basically helps making use of `tree-sitter` (parser-generating tool) and
|
|
-- provides highlighting
|
|
-- Based on language parsers, queries, and modules to work.
|
|
|
|
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
build = ":TSUpdate",
|
|
event = "BufRead",
|
|
config = function()
|
|
local configs = require("nvim-treesitter.configs")
|
|
configs.setup({
|
|
ensure_installed = {
|
|
"lua",
|
|
"cpp",
|
|
"java",
|
|
"javascript",
|
|
"bash",
|
|
"python",
|
|
"typescript",
|
|
"css",
|
|
"html",
|
|
"jsdoc",
|
|
"http",
|
|
"sql",
|
|
"ssh_config",
|
|
"json",
|
|
"tsx",
|
|
"xml",
|
|
"yaml",
|
|
"nginx",
|
|
"gitcommit",
|
|
"gitignore",
|
|
"cmake"
|
|
},
|
|
sync_install = true,
|
|
auto_intsall = true,
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = false
|
|
},
|
|
ident = { enable = true },
|
|
autopairs = {
|
|
enable = true
|
|
}
|
|
})
|
|
end
|
|
}
|