kosayoda / nvim-lightbulb

VSCode 💡 for neovim's built-in LSP.
MIT License
783 stars 27 forks source link

Change icon #37

Closed ignamartinoli closed 2 years ago

ignamartinoli commented 2 years ago

Hi, since the default icon won't render fine on my font, I tried to change it with this

require 'nvim-lightbulb'.setup {
    ignore = {},
    sign = {
        enabled = true,
        priority = 10,
    },
    float = {
        enabled = false,
        text = '',
        win_opts = {},
    },
    virtual_text = {
        enabled = false,
        text = '',
        hl_mode = "replace",
    },
    status_text = {
        enabled = false,
        text = '',
        text_unavailable = ""
    },
    autocmd = { enabled = true },
}

but when I try to emulate the Rust example given I still see the default icon. Is there something I'm doing wrong?

kosayoda commented 2 years ago

Hi, seeing as you're looking to change the text of the sign, the relevant documentation is right here: https://github.com/kosayoda/nvim-lightbulb#modify-the-lightbulb-sign

vim.fn.sign_define('LightBulbSign', { text = "", texthl = "", linehl="", numhl="" })

I'll add a comment to the main configuration code block so it's less confusing, since it's in a separate location after all.

ignamartinoli commented 2 years ago

Thanks!