~whynothugo/lsp_lines.nvim#28: 
LSP diagnostics are being showed along with lsp_lines

After setting up lsp_lines, I'm hiding LSP diagnostics. But I see both of them. When I toggle again from a keymap, it works fine. This seems to be happening for the first launch.

Here's my config

local lsp_lines = require("lsp_lines")

local M = {}

function M.toggle()
    vim.diagnostic.config {
        virtual_text = not lsp_lines.toggle(),
    }
end

lsp_lines.setup()
vim.diagnostic.config {
    virtual_text = false,
}

return M
Status
REPORTED
Submitter
~acecards
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
1 year, 5 months ago
Labels
No labels applied.

~whynothugo 1 year, 5 months ago*

Not really sure what's wrong here; your setup looks pretty much like mine:

require("lsp_lines").setup()
-- `virtual_text` is redundant due to lsp_lines.
vim.diagnostic.config({
  virtual_text = false,
})
Register here or Log in to comment, or comment via email.