Răsfoiți Sursa

nixpkgs/neovim: move picker pickers outside LSP mappings

Thomas Dy 9 luni în urmă
părinte
comite
a60a73d1e8
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      .config/nixpkgs/neovim/mappings.lua

+ 2 - 2
.config/nixpkgs/neovim/mappings.lua

@@ -21,6 +21,8 @@ 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>fg', '<cmd>lua commit_files()<CR>', opts)
 vim.keymap.set('n', '<Leader>ff', '<cmd>Telescope live_grep<CR>', opts)
+vim.keymap.set('n', '<Leader>fr', '<cmd>Telescope resume<CR>', opts)
+vim.keymap.set('n', '<Leader>fp', '<cmd>Telescope pickers<CR>', opts)
 
 -- jumplist navigation
 vim.keymap.set('n', '[f', '<C-O>', opts)
@@ -92,6 +94,4 @@ function on_attach(client, bufnr)
   vim.keymap.set('v', '<space>ca', '<cmd>lua vim.lsp.buf.range_code_action()<CR>', opts)
   vim.keymap.set('n', 'gr', '<cmd>Telescope lsp_references<CR>', opts)
   vim.keymap.set('n', '<Leader>fs', '<cmd>Telescope lsp_document_symbols<CR>', opts)
-  vim.keymap.set('n', '<Leader>fr', '<cmd>Telescope resume<CR>', opts)
-  vim.keymap.set('n', '<Leader>fp', '<cmd>Telescope pickers<CR>', opts)
 end