Closed tmpm697 closed 1 year ago
The input is a floating window with a buffer, so my guess is ctrl-n/p
do whatever default behavior they have in insert mode.
You might want to try this.
require('fine-cmdline').setup({
after_mount = function(input)
local fn = require('fine-cmdline').fn
local opts = {buffer = input.bufnr, silent = true}
vim.keymap.set('i', '<C-p>', fn.up_history, opts)
vim.keymap.set('i', '<C-n>', fn.down_history, opts)
end
})
whenever i press
:
and usectrl-n/p
to surf through command-line history, it always echoesmatching in file <filename>
at bottom of nvim window, why?I don't want any mesg when surfing the history.
i have map
vim.api.nvim_set_keymap('n', ':', '<cmd>FineCmdline<CR>', {silent = true})