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