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