summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/trouble.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/nvim/lua/plugins/trouble.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua
new file mode 100644
index 0000000..11c23a3
--- /dev/null
+++ b/.config/nvim/lua/plugins/trouble.lua
@@ -0,0 +1,27 @@
+return {
+ {
+ 'folke/trouble.nvim',
+ requires = {
+ {'nvim-tree/nvim-web-devicons'},
+ },
+ config = function()
+ 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
+ end
+ }
+}