You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both `install()` and `get_available()` are nil which causes the error
while spawning nvim and make the treesitter not working.
Replacing the custom `FileType` autocmd and manual parser attachment
logic with the standard `nvim-treesitter.configs` setup function
seems to work fine.
-- try to enable treesitter features in case the parser exists but is not available from `nvim-treesitter`
934
-
treesitter_try_attach(buf, language)
935
-
end
936
-
end,
937
-
})
911
+
-- Automatically install missing parsers when entering a buffer
912
+
auto_install=true,
913
+
914
+
-- Install parsers synchronously (only applied to `ensure_installed`)
915
+
sync_install=false,
916
+
917
+
-- Enable syntax highlighting
918
+
highlight= {
919
+
enable=true,
920
+
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
921
+
-- If you are experiencing weird indenting issues, add the language to the list of additional_vim_regex_highlighting and disabled languages for indent.
922
+
additional_vim_regex_highlighting=false,
923
+
},
924
+
925
+
-- Enable treesitter-based indentation
926
+
indent= {
927
+
enable=true,
928
+
},
929
+
}
930
+
931
+
-- If you want to enable your treesitter-based folds, you can keep this here:
0 commit comments