require('trouble').setup { icons = true, } -- Diagnostic signs -- https://github.com/folke/trouble.nvim/issues/52 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 = hl}) end