Skip to content

Commit

Permalink
refactor(nvim): set ensure_installed to all for treesitter
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Dec 14, 2024
1 parent ba2f2a3 commit 2338664
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .config/nvim/lua/specs/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,16 @@ Plugin.dependencies = {
}

Plugin.opts = {
ensure_installed = { 'lua' },
ensure_installed = 'all',
sync_install = false,
auto_install = true,
indent = {
enable = true,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = 'gnn',
node_incremental = 'grn',
scope_incremental = 'grc',
node_decremental = 'grm',
},
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
disable = { 'dockerfile' },
},
textobjects = {
select = {
Expand Down Expand Up @@ -69,8 +61,8 @@ Plugin.opts = {
['af'] = '@function.outer',
['if'] = '@function.inner',

['ax'] = '@parameter.outer',
['ix'] = '@parameter.inner',
['aa'] = '@parameter.outer',
['ia'] = '@parameter.inner',

['at'] = '@tag.outer',
['it'] = '@tag.inner',
Expand Down

0 comments on commit 2338664

Please sign in to comment.