nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.37k stars 285 forks source link

Rename Quit mode keymaps #1434

Closed AlgusDark closed 2 months ago

AlgusDark commented 2 months ago

Is your feature request related to a problem? Please describe. Hi, I would like to request a feature to have different quit mapping for rename when I'm in different modes. For example, I would love to quit the rename with "" or "q" only when I'm in normal mode; but I would like to be able to quit, when in other mode with "".

Describe the solution you'd like Maybe a table on the config would be nice solution:

{
  rename = {
    in_select = false,
    keys = {
      quit = {  -- if a string, then applies to {"n", "i", "x"}
            {"n"} = "q",
            {"i", "v"} = "<C-K>",
          },
        },
    },
}
AlgusDark commented 2 months ago

I was able to do this with autocommands, so it's not really neccesary.