neovim-config/lua/plugins/treesitter.lua

29 lines
434 B
Lua

local ts_config
if
not pcall(
function()
ts_config = require "nvim-treesitter.configs"
end
)
then
return
end
ts_config.setup {
ensure_installed = {
"javascript",
"html",
"css",
"bash",
"lua",
"json",
"python"
-- "rust",
-- "go"
},
highlight = {
enable = true,
use_languagetree = true
}
}