Skip to content

Commit 33321eb

Browse files
PeterCardenasibhagwan
authored andcommitted
fix(previewer): set i keymap only for normal mode
Allows for keymaps like `vip` to work
1 parent 1ae863c commit 33321eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/fzf-lua/previewer/builtin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function Previewer.base:set_preview_buf(newbuf, min_winopts, no_wipe)
198198
utils.win_set_buf_noautocmd(self.win.preview_winid, newbuf)
199199
-- to make gc work, don't reference `win._previewer` in a callback
200200
local winid = self.win.fzf_winid
201-
vim.keymap.set("", "i", function()
201+
vim.keymap.set("n", "i", function()
202202
api.nvim_set_current_win(winid)
203203
vim.cmd("startinsert")
204204
end, { buffer = newbuf })

0 commit comments

Comments
 (0)