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
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, })