summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/plugin/trouble.lua
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-29 16:26:21 +0100
committerJoe <rbo@gmx.us>2023-12-29 16:26:21 +0100
commit6a9fd3965335004d56bbcd7a25ac6981f6a87397 (patch)
tree34c0a76b28122d6df4de2399c6c9fc8e1b3cbf66 /.config/nvim/after/plugin/trouble.lua
parentup (diff)
downloaddotfiles-bsd-6a9fd3965335004d56bbcd7a25ac6981f6a87397.tar.gz
dotfiles-bsd-6a9fd3965335004d56bbcd7a25ac6981f6a87397.tar.bz2
dotfiles-bsd-6a9fd3965335004d56bbcd7a25ac6981f6a87397.tar.xz
dotfiles-bsd-6a9fd3965335004d56bbcd7a25ac6981f6a87397.tar.zst
dotfiles-bsd-6a9fd3965335004d56bbcd7a25ac6981f6a87397.zip
up
Diffstat (limited to '.config/nvim/after/plugin/trouble.lua')
-rw-r--r--.config/nvim/after/plugin/trouble.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/trouble.lua b/.config/nvim/after/plugin/trouble.lua
new file mode 100644
index 0000000..f2a74fb
--- /dev/null
+++ b/.config/nvim/after/plugin/trouble.lua
@@ -0,0 +1,17 @@
+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