dotfiles/nvim/.config/nvim/after/plugin/fzf-preview.lua
Sanchayan Maity 108630d19c nvim: Move plugin configuration files to after/plugin
Now that neovim runtime can also source lua files from traditional vim
runtime directories like after/plugin/ftplugin etc, move all plugin
configuration files to after/plugin.
2021-06-17 10:07:51 +05:30

12 lines
674 B
Lua

local remap = vim.api.nvim_set_keymap
remap('n', '<Leader>fg', ':FZFGGrep<CR>', { noremap = true })
remap('n', '<Leader>fG', ':FZFGrep<CR>', { noremap = true })
remap('n', '<Leader>fl', ':FZFBLines<CR>', { noremap = true })
remap('n', '<Leader>f\\', ':FZFRg<CR>', { noremap = true })
remap('n', '<Leader>fT', ':FZFTags<SPACE>', { noremap = true })
remap('n', '<Leader>fq', ':cclose<CR>:FZFQuickFix<CR>', { noremap = true })
remap('n', '<Leader>fQ', ':lclose<CR>:FZFLocList<CR>', { noremap = true })
remap('n', '<Leader>fS', ':<C-u>FZFRg <C-r><C-w><CR>', { noremap = true })
remap('n', '<Leader>ft', ':<C-u>FZFTags <C-r><C-w><CR>', { noremap = true })