treesitter
This commit is contained in:
21
lua/plugins/treesitter.lua
Normal file
21
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
version = false,
|
||||
build = ":TSUpdate",
|
||||
main = "nvim-treesitter.configs",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"bash", "bibtex", "c", "css", "fish", "go",
|
||||
"java", "rust", "lua", "vim", "python", "cpp",
|
||||
"markdown", "markdown-inline","html", "yaml", "latex" },
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
},
|
||||
config = function(_, opts)
|
||||
local ok, configs = pcall(require, "nvim-treesitter.configs")
|
||||
if ok then configs.setup(opts) end
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user