diff options
Diffstat (limited to 'dot_config/nvim.new/lua/ibrahim/plugins/lsp-lines.lua')
| -rw-r--r-- | dot_config/nvim.new/lua/ibrahim/plugins/lsp-lines.lua | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/dot_config/nvim.new/lua/ibrahim/plugins/lsp-lines.lua b/dot_config/nvim.new/lua/ibrahim/plugins/lsp-lines.lua deleted file mode 100644 index e15055e..0000000 --- a/dot_config/nvim.new/lua/ibrahim/plugins/lsp-lines.lua +++ /dev/null @@ -1,35 +0,0 @@ -return { - url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim", - event = { "BufReadPre", "BufNewFile" }, - keys = { - -- The keys table here supports anything in the opts table for - -- vim.keymap.set, but be careful not to nest it in another table - -- like you would for that function. - -- { "<leader>di", desc = "Toggle [d]iagnostic [i]nline" }, - "<leader>di", - }, - opts = { - enabled = { - virtual_lines = true, - virtual_text = false, - }, - disabled = { - virtual_lines = false, - virtual_text = { spacing = 4, prefix = "●" }, - }, - }, - config = function(_, opts) - require("lsp_lines").setup() - local is_enabled = false - vim.diagnostic.config(opts.disabled) - - vim.keymap.set("n", "<leader>di", function() - is_enabled = not is_enabled - if is_enabled then - vim.diagnostic.config(opts.enabled) - else - vim.diagnostic.config(opts.disabled) - end - end, { desc = "Toggle [d]iagnostics [i]nline" }) - end, -} |
