diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:52:58 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:52:58 +0100 |
| commit | df55cb522dfd6b3d2cd2b734fce9d8fc1303385a (patch) | |
| tree | 2c51a56531a3dad6610fa961736f3dbaee3e8fe0 /lua/user/treesitter.lua | |
| parent | b9a2bc855bbd7a7d54c9e280ee875393e30cf1a6 (diff) | |
| parent | f671fc644de5edbeb4692df3b1b763754e22fb16 (diff) | |
Merge branch 'vgg' into 09-autopairs09-autopairs
Diffstat (limited to 'lua/user/treesitter.lua')
| -rw-r--r-- | lua/user/treesitter.lua | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua index b5754d6..b840ccd 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" } }, } |
