diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/after/plugin/trouble.lua | 17 |
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 |