feat: split diag window in diag float

This commit is contained in:
Price Hiller 2023-01-17 17:02:38 -06:00
parent a2f7af65e7
commit d7a8b6cde4

View File

@ -78,6 +78,7 @@ vim.keymap.set("n", "<leader>lr", vim.lsp.buf.references, { silent = true, desc
vim.keymap.set("n", "<leader>lR", ":LspRestart<CR>", { silent = true, desc = "LSP: Restart" })
vim.keymap.set("n", "<leader>ls", function()
vim.diagnostic.open_float(nil, { focus = true, scope = "cursor" })
vim.cmd.vsplit()
end, { silent = true, desc = "LSP: Diagnostic Open Float" })
vim.keymap.set("n", "<leader>lf", function()
vim.lsp.buf.format({ async = true })