nvim: after/plugin/fzf-lua: Add a mapping for bcommits in visual mode
The <cmd> is necessary, as `:` exits visual mode. Also, while at it use vim.keymap.set instead of nvim_set_keymap. Also see, https://github.com/ibhagwan/fzf-lua/issues/816.
This commit is contained in:
parent
00da5c690f
commit
6313ece287
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
local actions = require "fzf-lua.actions"
|
local actions = require "fzf-lua.actions"
|
||||||
local remap = vim.api.nvim_set_keymap
|
local remap = vim.keymap.set
|
||||||
local opts = { noremap=true, unique=true, silent=true }
|
local opts = { noremap=true, unique=true, silent=true }
|
||||||
|
|
||||||
require'fzf-lua'.setup {
|
require'fzf-lua'.setup {
|
||||||
|
@ -235,6 +235,7 @@ remap('n', '<Leader>ff', ':FzfLua git_files<CR>' , opts)
|
||||||
remap('n', '<Leader>/' , ':FzfLua git_status<CR>' , opts)
|
remap('n', '<Leader>/' , ':FzfLua git_status<CR>' , opts)
|
||||||
remap('n', '<Leader>fb', ':FzfLua git_branches<CR>' , opts)
|
remap('n', '<Leader>fb', ':FzfLua git_branches<CR>' , opts)
|
||||||
remap('n', '<Leader>fc', ':FzfLua git_bcommits<CR>' , opts)
|
remap('n', '<Leader>fc', ':FzfLua git_bcommits<CR>' , opts)
|
||||||
|
remap('x', '<Leader>fc', '<cmd>FzfLua git_bcommits<CR>' , opts)
|
||||||
remap('n', '<Leader>fC', ':FzfLua git_commits<CR>' , opts)
|
remap('n', '<Leader>fC', ':FzfLua git_commits<CR>' , opts)
|
||||||
remap('n', '<Leader>ft', ':FzfLua git_stash<CR>' , opts)
|
remap('n', '<Leader>ft', ':FzfLua git_stash<CR>' , opts)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue