Switched to using pcall for imports

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-06-20 10:23:44 +02:00
parent 91cea67382
commit 9c8e4e9948
11 changed files with 54 additions and 19 deletions

View File

@@ -1,5 +1,10 @@
require'nvim-treesitter.configs'.setup {
ensure_installed = { "lua", "vim", "vimdoc", "javascript", "java" },
local status, treesitter = pcall(require, "nvim-treesitter.configs")
if not status then
return
end
treesitter.setup {
ensure_installed = { "lua", "vim", "vimdoc", "javascript", "java", "json" },
sync_install = false,
auto_install = true,