noice.nvim icon indicating copy to clipboard operation
noice.nvim copied to clipboard

feature: ability to manually close signature help window in insert mode

Open matthewsia98 opened this issue 1 year ago • 1 comments

Did you check the docs?

  • [X] I have read all the noice.nvim docs

Is your feature request related to a problem? Please describe.

When I type print(, signature help is auto triggered and window opens. This covers some number of lines either above or below cursor.

Describe the solution you'd like

I want to be able to map something like <C-c> in insert mode to close signature help.

Describe alternatives you've considered

Tried mapping <C-c> to require("noice.lsp.docs").on_close() but did not work well.

Additional context

No response

matthewsia98 avatar Jan 31 '23 06:01 matthewsia98

guys, you would not believe...

vim.keymap.set("i", "<M-c>", function()
  local nldocs = require("noice.lsp.docs")
  local message = nldocs.get("signature")
  nldocs.hide(message)
end)

shabaev avatar Mar 22 '24 08:03 shabaev