Skip to content

Commit

Permalink
neovim: Bring back sideways text objects
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Jan 26, 2025
1 parent 37b7b28 commit f62f314
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dotfiles/nvim/.config/nvim/lua/shortcuts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,7 @@ map('<Leader>Tg', ':!ctags -R', 'Update ctags')

-- highlight
map('*', ":let @/='\\<<C-R>=expand(\"<cword>\")<CR>\\>'<CR>:set hls", 'Highlight word under cursor')

-- text objects
vim.api.nvim_set_keymap('o', 'aa', '<Plug>SidewaysArgumentTextobjA', {})
vim.api.nvim_set_keymap('o', 'ia', '<Plug>SidewaysArgumentTextobjI', {})

0 comments on commit f62f314

Please sign in to comment.