Browse Source

nixpkgs/neovim: add bindings for jumplists

Thomas Dy 2 years ago
parent
commit
fad20f071c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .config/nixpkgs/neovim/mappings.lua

+ 4 - 0
.config/nixpkgs/neovim/mappings.lua

@@ -21,6 +21,10 @@ vim.keymap.set('n', '<C-P>', '<cmd>lua project_files()<CR>', opts)
 vim.keymap.set('n', '<C-O>', '<cmd>Telescope buffers<CR>', opts)
 vim.keymap.set('n', '<Leader>ff', '<cmd>Telescope live_grep<CR>', opts)
 
+-- jumplist navigation
+vim.keymap.set('n', '[f', '<C-O>', opts)
+vim.keymap.set('n', ']f', '<C-I>', opts)
+
 -- cursor display
 vim.keymap.set('n', '<Leader>c', '<cmd>set cursorline! cursorcolumn!<CR>', opts)