Skip to content
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

No way of making the virtual text be always above the line, the hover functionality does not work for me. #343

Open
kupkapandy opened this issue Oct 21, 2024 · 0 comments

Comments

@kupkapandy
Copy link

The configs that I'm using are:

autocmds.lua (I tried with other configurations but that is the only one that work with virtual text when typing a function parameters in code.

vim.api.nvim_create_autocmd("LspAttach", {
  callback = function(args)
    local bufnr = args.buf
    local client = vim.lsp.get_client_by_id(args.data.client_id)
    if vim.tbl_contains({ 'null-ls' }, client.name) then
      return
    end
    require("lsp_signature").on_attach({
      bind = true,
      hint_prefix = "",
      floating_window = false,
    }, bufnr)
  end,
})

plugin config in other file where it's installed.

  return{
    {
    "ray-x/lsp_signature.nvim",
    event = "InsertEnter",
    opts = {
      bind = true,
      hint_prefix = "",
      floating_window = false,
    },
    config = function(_, opts) require'lsp_signature'.setup(opts) end
  },
}

In my config firstly the autocmds are loaded and then the config file where the plugin is downloaded.
Also I have seen noice.nvim making problems, but disabling it did nothing.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant