zen-mode.nvim icon indicating copy to clipboard operation
zen-mode.nvim copied to clipboard

Integration with lspconfig and lspsaga

Open AckslD opened this issue 4 years ago • 4 comments

Similarly to the gitsigns plugin, is there an integration with lsp to disable eg virtual text diagnostics and code action prompt from lspsaga in zen mode?

AckslD avatar May 20 '21 14:05 AckslD

Great idea. I'll add this soon. Thanks!

folke avatar May 20 '21 21:05 folke

Could this happen by running a command in here:

    on_open = function(win)
        COMMAND TO KILL LSP
    end,
    on_close = function()
        COMMAND TO RESTART LSP
    end,

I ask because I'm not totally sure what should go in for the placeholders above. Any pointers would be great.

benbrastmckie avatar Feb 26 '24 01:02 benbrastmckie

I ask because I'm not totally sure what should go in for the placeholders above. Any pointers would be great.

on_open = function(win)
    vim.cmd("LspStop")
end,

on_close = function()
    vim.cmd("LspStart")
end

... works great.

mahlonsmith avatar Mar 22 '24 00:03 mahlonsmith