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
|
2022-07-22 16:00:00 +00:00
|
|
|
return
|
2021-06-25 16:06:13 +00:00
|
|
|
end
|
|
|
|
|
2022-06-14 12:06:27 +00:00
|
|
|
require("base46").load_highlight "treesitter"
|
|
|
|
|
2022-04-27 15:42:28 +00:00
|
|
|
local options = {
|
2022-07-22 16:00:00 +00:00
|
|
|
ensure_installed = {
|
|
|
|
"lua",
|
|
|
|
},
|
2022-09-09 04:19:31 +00:00
|
|
|
|
2022-07-22 16:00:00 +00:00
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
use_languagetree = true,
|
|
|
|
},
|
2022-09-09 04:19:31 +00:00
|
|
|
|
|
|
|
indent = {
|
|
|
|
enable = 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
|
2022-05-29 10:37:47 +00:00
|
|
|
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)
|