simple textobjects/surround

main
Steffen Rademacker 1 year ago
parent 39856c3e35
commit 23a54573c5

@ -32,20 +32,4 @@ require('nvim-treesitter.configs').setup({
indent = {
enable = true,
},
textobjects = {
select = {
enable = true,
lookahead = true,
keymaps = {
['ab'] = '@block.outer',
['ib'] = '@block.inner',
['af'] = '@function.outer',
['if'] = '@function.inner',
['ac'] = '@call.outer',
['ic'] = '@call.inner',
['ai'] = '@conditional.outer',
['ii'] = '@conditional.inner',
},
},
},
})

@ -36,10 +36,6 @@ require('lazy').setup({
init = get_config('treesitter'),
build = ':TSUpdate',
},
{
'nvim-treesitter/nvim-treesitter-textobjects',
dependencies = 'nvim-treesitter/nvim-treesitter'
},
{
'jose-elias-alvarez/null-ls.nvim',
init = get_config('null-ls'),
@ -69,7 +65,7 @@ require('lazy').setup({
{ 'numToStr/Comment.nvim', config = true },
{ 'tpope/vim-ragtag' },
{ 'tpope/vim-repeat' },
{ 'ur4ltz/surround.nvim', opts = { mappings_style = 'surround' } },
{ 'tpope/vim-surround' },
{ 'windwp/nvim-autopairs', config = true },
-- git and other external tools integration

Loading…
Cancel
Save