Skip to content

help: How to disable Backtick in signature help window #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Vladipz opened this issue Feb 7, 2025 · 4 comments
Closed

help: How to disable Backtick in signature help window #326

Vladipz opened this issue Feb 7, 2025 · 4 comments
Labels
question Further information is requested

Comments

@Vladipz
Copy link

Vladipz commented Feb 7, 2025

Neovim version (nvim -v)

0.10.0

Neovim distribution

N/a

Description

How to disable Backtick in the signature help window . It happens just when plugin is turned on.
My setup

'MeanderingProgrammer/render-markdown.nvim',
 dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you use the mini.nvim suite
 ---@module 'render-markdown'
 ---@type render.md.UserConfig
 opts = {
     file_types = { 'markdown', 'copilot-chat' },
 }

Image

@Vladipz Vladipz added the question Further information is requested label Feb 7, 2025
@MeanderingProgrammer
Copy link
Owner

Do you use a plugin for signature help (if so which one) or is this the builtin one?

By default I believe the signature help window is in markdown format and this plugin will render it, but since the code block / language is not being rendered in your screenshot that does not appear to be the case.

@Vladipz
Copy link
Author

Vladipz commented Feb 7, 2025

@MeanderingProgrammer I use this config for overloads provided by Issafalcon/lsp-overloads.nvim. The documentation states that it extends the built-in Neovim LSP signature helper.

if client.server_capabilities.signatureHelpProvider then
    require("lsp-overloads").setup(client, {
      display_automatically = true,
      ui = {
        border = { " ", "", " ", " ", " ", "", " ", " " },
      },
    })
    vim.keymap.set({ "n", "i" }, "<C-n>", "<cmd>LspOverloadsSignature<CR>",
      { desc = "Ctrl + n - show signature help with overloads (if they are present)", buffer = buffer })
  else
    vim.keymap.set({ "n", "i" }, "<C-n>", vim.lsp.buf.signature_help,
      { desc = "Ctrl + n - show signature help", buffer = buffer })
  end

Also, I think I should provide a screenshot where I disabled the markdown plugin.

Image

MeanderingProgrammer added a commit that referenced this issue Feb 7, 2025
## Details

Issue: #326

When triggering LSP hover docs / signature help in insert mode this
plugin will attach to the buffer but since we're in insert mode it will
display the raw view instead of the rendered view. By setting the
`render_modes` to `true` now the doc buffers will always be in the
rendered state.
@MeanderingProgrammer
Copy link
Owner

Ah I see the issue. This happens when you trigger the LSP docs in insert mode. So this plugin attaches to the buffer, but by default in insert mode we don't render, so you'll get the un-rendered view of a markdown file.

I updated the default to always render LSP docs here: 17a7746

Please update and LMK if this is what you were looking for!

@Vladipz
Copy link
Author

Vladipz commented Feb 8, 2025

@MeanderingProgrammer Yes, it solved my problem. I just updated the plugin. Thank you so much!

@Vladipz Vladipz closed this as completed Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants