Fix nvim-treesitter lazy loading

This commit is contained in:
2025-05-31 22:25:43 +05:00
parent 28edfffb1c
commit fdf90caaaf
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
return {
local options = {
ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc", "java" },
highlight = {
@ -8,3 +8,5 @@ return {
indent = { enable = true },
}
require("nvim-treesitter.configs").setup(options)

View File

@ -31,6 +31,7 @@ return {
{
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
opts = {
require "configs.treesitter",
},