Skip to content

hover_doc has two iconsΒ #1549

@xiaoliyooo

Description

@xiaoliyooo

Describe the bug

Why do I always get 2 icons and have weird margins on the left side, I make sure lsp doesn't have any duplicates turned on, it has one icon some of the time but two most of the time!

Image

-- improves the Neovim built-in LSP experience

return function()
local border = require('core.custom-style').border
require('lspsaga').setup({
ui = {
border = border,
},
diagnostic = {
keys = {
quit = { 'q', '' },
},
},
code_action = {
show_server_name = true,
},
finder = {
max_height = 0.5,
},
lightbulb = {
virtual_text = false,
},
})

vim.api.nvim_create_autocmd('VimEnter', {
callback = function()
vim.keymap.set('n', 'gh', 'Lspsaga hover_doc')
vim.keymap.set('n', 'rn', 'Lspsaga rename')
vim.keymap.set('n', 'ca', 'Lspsaga code_action')
vim.keymap.set('n', 'le', 'Lspsaga show_buf_diagnostics')
vim.keymap.set('n', 'gd', vim.lsp.buf.definition)
vim.keymap.set('n', 'gr', 'Lspsaga finder ref')
end,
})
end

Steps to reproduce

I just simply configured it and then hover

Expected behavior

only one icon

Neovim version (nvim -v)

0.11.3

lspsaga commit

8efe00d

Terminal name/version

kitty

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions