2022-04-27 15:42:28 +00:00
|
|
|
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
2021-11-17 05:30:57 +00:00
|
|
|
|
2021-07-17 11:14:52 +00:00
|
|
|
if not present then
|
2021-08-16 07:49:09 +00:00
|
|
|
return
|
2021-06-25 16:06:13 +00:00
|
|
|
end
|
|
|
|
|
2022-04-27 15:42:28 +00:00
|
|
|
local options = {
|
2021-08-16 07:49:09 +00:00
|
|
|
ensure_installed = {
|
|
|
|
"lua",
|
2021-11-19 01:47:09 +00:00
|
|
|
"vim",
|
2021-08-16 07:49:09 +00:00
|
|
|
},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
use_languagetree = true,
|
|
|
|
},
|
2021-07-15 15:43:17 +00:00
|
|
|
}
|
2022-01-21 00:26:05 +00:00
|
|
|
|
2022-04-27 15:42:28 +00:00
|
|
|
-- check for any override
|
|
|
|
options = require("core.utils").load_override(options, "nvim-treesitter/nvim-treesitter")
|
2022-01-21 00:26:05 +00:00
|
|
|
|
2022-04-27 15:42:28 +00:00
|
|
|
treesitter.setup(options)
|