74 lines
1.5 KiB
Lua
74 lines
1.5 KiB
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
lazy = false,
|
|
dependencies = "AstroNvim/astrocore",
|
|
opts = function(_, opts)
|
|
-- add more things to the ensure_installed table protecting against community packs modifying it
|
|
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
|
|
"lua",
|
|
"cpp",
|
|
"c",
|
|
"bash",
|
|
"vim",
|
|
"markdown",
|
|
"asm",
|
|
"cmake",
|
|
"css",
|
|
"html",
|
|
"javascript",
|
|
"printf",
|
|
"fish",
|
|
"git_config",
|
|
"git_rebase",
|
|
"gitcommit",
|
|
"gitignore",
|
|
"gitattributes",
|
|
"java",
|
|
"meson",
|
|
"ninja",
|
|
"python",
|
|
"sql",
|
|
"typescript",
|
|
"vimdoc",
|
|
"xml"
|
|
})
|
|
end,
|
|
config = function()
|
|
require("nvim-treesitter.configs").setup {
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
ensure_installed = {
|
|
"lua",
|
|
"cpp",
|
|
"c",
|
|
"bash",
|
|
"vim",
|
|
"markdown",
|
|
"asm",
|
|
"cmake",
|
|
"css",
|
|
"html",
|
|
"javascript",
|
|
"printf",
|
|
"fish",
|
|
"git_config",
|
|
"git_rebase",
|
|
"gitcommit",
|
|
"gitignore",
|
|
"gitattributes",
|
|
"java",
|
|
"meson",
|
|
"ninja",
|
|
"python",
|
|
"sql",
|
|
"typescript",
|
|
"vimdoc",
|
|
"xml"
|
|
}
|
|
}
|
|
end
|
|
}
|
|
}
|