summaryrefslogtreecommitdiff
path: root/lua/user/treesitter.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 12:24:08 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 12:24:08 +0100
commit625cbc47271842540a0bee111b2a83ef65883de4 (patch)
tree629d713891cc7d5e485b6b4bcf24f9bc99d7bc3a /lua/user/treesitter.lua
parent95e5604074b7443968f01738f7c556260a13b297 (diff)
parentb49b14da051b693036bf8d71dc9932b31a8cafa0 (diff)
Merge branch 'vgg' into 20-alpha20-alpha
Diffstat (limited to 'lua/user/treesitter.lua')
-rw-r--r--lua/user/treesitter.lua23
1 files changed, 17 insertions, 6 deletions
diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua
index 6f14cfc..db78f70 100644
--- a/lua/user/treesitter.lua
+++ b/lua/user/treesitter.lua
@@ -1,11 +1,21 @@
-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 = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
- sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
+ ensure_installed = "maintained",
+ sync_install = false,
ignore_install = { "" }, -- List of parsers to ignore installing
autopairs = {
enable = true,
@@ -14,6 +24,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 = {