trouble.nvim
trouble.nvim copied to clipboard
`icons = false` doesn't work?
Hi,
Found your plugin today and ran into the following.
First my config snippet:
use {
"folke/trouble.nvim",
config = function()
require("trouble").setup {
fold_open = "v",
fold_closed = ">",
indent_lines = false,
signs = {
error = "error",
warning = "warn",
hint = "hint",
information = "info"
},
icons = false,
use_lsp_diagnostic_signs = false
}
end
}
Despite icons = false, nvim says:
[Trouble] 'nvim-web-devicons' is not installed. Install it, or set icons=false in your configuration to disable this message
Is it a bug?
I am not sure about your 'use' syntax, but this works:
require("trouble").setup {
icons = false,
use_lsp_diagnostic_signs = true,
}
and in the more general lsp setup https://github.com/neovim/nvim-lspconfig/wiki/UI-customization#change-diagnostic-symbols-in-the-sign-column-gutter:
local signs = { Error = 'ï™™ ', Warn = ' ', Hint = 'ï µ ', Info = ' ' }
for type, icon in pairs(signs) do
local hl = 'DiagnosticSign' .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = '' })
end
Yo probably didnt restart, run PackerSync and restart again?
I am also having this issue. [Trouble] 'nvim-web-devicons' is not installed. Install it, or set icons=false in your configuration to disable this message pops up every time I try to open trouble.nvim despite both having nvim-web-devicons installed and also having icons = false set in my config.
use("folke/trouble.nvim", {
requires = { "nvim-tree/nvim-web-devicons" },
config = function()
require 'nvim-web-devicons'.setup {}
require("trouble").setup {
icons = false,
use_lsp_diagnostic_signs = true,
}
end
})
I have done a PackerSync and restarted, to no success
I'm not having the same issues with not being able to disable icons as well, with lazy.nvim
Development on the main branch is EOL.
Trouble has been rewritten and will be merged in main soon.
This issue/feature either no longer exists or has been implemented on dev.
For more info, see https://github.com/folke/trouble.nvim/tree/dev