Skip to content

Commit

Permalink
nvim: update binds
Browse files Browse the repository at this point in the history
  • Loading branch information
juliamertz committed Dec 26, 2024
1 parent 5848aac commit 93ef72e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nvim/lua/julia/binds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ keymap('n', '<C-l>', '<C-w>l')

-- misc
keymap('n', '<leader>cb', utils.buf_kill)
keymap('t', '<esc><esc>', '<c-\\><c-n>')

local function vresize(step)
vim.cmd('vertical resize ' .. step)
Expand All @@ -22,9 +23,9 @@ keymap('n', '<C-w><', function()
vresize('+' .. vim.o.columns / 10)
end)

-- Rebind ctrl-] to gd for manpages
-- Rebind ctrl-] to gd for man/help pages
vim.api.nvim_create_autocmd('FileType', {
pattern = 'man',
pattern = { 'man', 'help' },
callback = function()
vim.keymap.set('n', 'gd', '<C-]>', { buffer = true })
end,
Expand Down

0 comments on commit 93ef72e

Please sign in to comment.