Skip to content

hachy/cmdpalette.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmdpalette.nvim

A Neovim plugin that provides a floating command-line window.

cmdpalette.mov

Installation

Using lazy.nvim

  {
    "hachy/cmdpalette.nvim",
    config = function()
      require("cmdpalette").setup()
    end,
  },

Using vim-plug

Plug 'hachy/cmdpalette.nvim'
require("cmdpalette").setup({})

Usage

Use the Cmdpalette command or call it in your own keybinding.

vim.keymap.set("n", ":", "<Plug>(cmdpalette)")

Keybindings

In normal mode

  • q, Esc: Quit the current window
  • C-d: Remove a command under the cursor from a cmdline-history

Configuration

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,
})

About

A Neovim plugin that provides a floating command-line window.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages