mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 21:40:37 +00:00
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
28 lines
434 B
Lua
28 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
|
|
}
|
|
}
|