A Neovim plugin that provides a floating command-line window.
cmdpalette.mov
Using lazy.nvim
{
"hachy/cmdpalette.nvim",
config = function()
require("cmdpalette").setup()
end,
},
Using vim-plug
Plug 'hachy/cmdpalette.nvim'
require("cmdpalette").setup({})
Use the Cmdpalette
command or call it in your own keybinding.
vim.keymap.set("n", ":", "<Plug>(cmdpalette)")
In normal mode
q
,Esc
: Quit the current windowC-d
: Remove a command under the cursor from a cmdline-history
Below is a default options:
require("cmdpalette").setup({
win = {
height = 0.3,
width = 0.8,
border = "rounded",
row_off = -2,
-- Title requires nvim-0.9 or higher.
title = "Cmdpalette",
title_pos = "center",
},
sign = {
text = ":",
},
buf = {
filetype = "vim",
syntax = "vim",
},
delete_confirm = true,
show_title = true,
})