trouble.nvim icon indicating copy to clipboard operation
trouble.nvim copied to clipboard

`icons = false` doesn't work?

Open vext01 opened this issue 4 years ago • 4 comments

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?

vext01 avatar Oct 06 '21 15:10 vext01

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

David-Else avatar Oct 22 '21 14:10 David-Else

Yo probably didnt restart, run PackerSync and restart again?

folke avatar Dec 10 '21 09:12 folke

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

Ajetski avatar Feb 23 '23 13:02 Ajetski

I'm not having the same issues with not being able to disable icons as well, with lazy.nvim

gregorywaynepower avatar Sep 18 '23 21:09 gregorywaynepower

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

folke avatar Mar 29 '24 07:03 folke