1

Neovim: Fix neovim rounded border for rust floats

This commit is contained in:
2024-06-08 00:24:01 +02:00
parent 6811d26918
commit 1000eb3e9d
2 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ vim.diagnostic.config({
})
vim.api.nvim_create_user_command("ToggleInlineDiagnostics", function()
vim.g.enable_inline_diagnostics = not vim.g.enable_inline_diagnostics
vim.diagnostic.config({ virtual_text = vim.g.enable_inline_diagnostics })
vim.diagnostic.config({ virtual_text = vim.g.enable_inline_diagnostics, float = { border = "rounded" } })
require("notify")((vim.g.enable_inline_diagnostics and "Enabled" or "Disabled") .. " inline diagnostics")
end, {
desc = "Toggle inline diagnostics",