summaryrefslogtreecommitdiff
path: root/lua/user/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/treesitter.lua')
-rw-r--r--lua/user/treesitter.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua
index eadd605..f709099 100644
--- a/lua/user/treesitter.lua
+++ b/lua/user/treesitter.lua
@@ -1,8 +1,5 @@
-local status_ok, configs = pcall(require, "nvim-treesitter.configs")
-if not status_ok then
- return
-end
+local configs = require("nvim-treesitter.configs")
configs.setup {
ensure_installed = "all", -- "all" (parsers with maintainers), or a list of languages
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
@@ -14,6 +11,7 @@ configs.setup {
enable = true, -- false will disable the whole extension
disable = { "" }, -- list of language that will be disabled
additional_vim_regex_highlighting = true,
+
},
indent = { enable = true, disable = { "yaml" } },
context_commentstring = {