27 lines
754 B
Lua
27 lines
754 B
Lua
-- https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#language-parsers for language parsers
|
|
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" },
|
|
sync_install = true,
|
|
auto_intsall = true,
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = false
|
|
},
|
|
ident = { enable = true },
|
|
autopairs = {
|
|
enable = true
|
|
}
|
|
})
|
|
end,
|
|
keys = {
|
|
{ "<leader>mm", "<cmd>NvimTreeToggle<cr>", desc = "Toggle Tree"}
|
|
}
|
|
}
|
|
|
|
|