29 lines
438 B
Lua
29 lines
438 B
Lua
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
|
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
-- require("ui").load_highlight "treesitter"
|
|
|
|
local options = {
|
|
ensure_installed = {
|
|
"lua",
|
|
"rust",
|
|
"c",
|
|
"python",
|
|
"help",
|
|
},
|
|
|
|
highlight = {
|
|
enable = true,
|
|
use_languagetree = true,
|
|
},
|
|
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
}
|
|
|
|
treesitter.setup(options)
|