diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-15 18:15:40 +0100 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2024-03-15 18:18:21 +0100 |
commit | 55008e9c684279c7606aadc9da7c07ec20fc8ed7 (patch) | |
tree | 71a06635df453a8aa76d7ad4dd8c03ce1f5150c0 /lua/kickstart/plugins/treesitter.lua | |
parent | f02070e07692bdcad7398642149e2093e8836344 (diff) | |
parent | 7892c0c354639985b1cf36f11d175201590e267b (diff) |
Merge 'upstream' timeoutlen, cmp scroll, friendly snippets, luasnip, ruby
Merged:
- fix: disable ts indenting for Ruby
- doc: add note about advanced luasnip features
- Move friendly snippets to dependencies of LuaSnip (#759)
- Add <C-b>/<C-f> cmp mapping to scroll cmp docs (#750)
- doc: add info about timeoutlen (#691)
Diffstat (limited to 'lua/kickstart/plugins/treesitter.lua')
-rw-r--r-- | lua/kickstart/plugins/treesitter.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua index 689c5ce..d330adc 100644 --- a/lua/kickstart/plugins/treesitter.lua +++ b/lua/kickstart/plugins/treesitter.lua @@ -6,8 +6,14 @@ return { ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' }, -- Autoinstall languages that are not installed auto_install = true, - highlight = { enable = true }, - indent = { enable = true }, + highlight = { + enable = true, + -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules. + -- If you are experiencing weird indenting issues, add the language to + -- the list of additional_vim_regex_highlighting and disabled languages for indent. + additional_vim_regex_highlighting = { 'ruby' }, + }, + indent = { enable = true, disable = { 'ruby' } }, }, config = function(_, opts) -- [[ Configure Treesitter ]] See `:help nvim-treesitter` |