Fix nvim-treesitter lazy loading
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
return {
|
local options = {
|
||||||
ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc", "java" },
|
ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc", "java" },
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
@ -8,3 +8,5 @@ return {
|
|||||||
|
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require("nvim-treesitter.configs").setup(options)
|
||||||
|
@ -31,6 +31,7 @@ return {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
opts = {
|
opts = {
|
||||||
require "configs.treesitter",
|
require "configs.treesitter",
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user