summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/trouble.lua
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-25 18:13:21 +0200
committerjoe <rbo@gmx.us>2025-08-25 18:13:21 +0200
commit41682275d321b6b79ee4c07f25e819875519466e (patch)
tree301ee0175c17d2394a950ef7d11bffd0d47597ac /.config/nvim/lua/plugins/trouble.lua
parentup (diff)
downloaddotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.gz
dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.bz2
dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.xz
dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.zst
dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.zip
cool
Diffstat (limited to '.config/nvim/lua/plugins/trouble.lua')
-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
+ }
+}