d16ffabcfd
first commit of Refactor handle require errors move config from other places to proper files don't create a pseudo config function for no reason https://github.com/siduck76/NvChad/pull/156#issuecomment-881453546
29 lines
434 B
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
|
|
}
|
|
}
|