Neovim: Fix neovim rounded border for rust floats
This commit is contained in:
@ -432,6 +432,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: Don't autosave, but if a session exists, update it (using should_autosave)
|
||||||
_persisted = {
|
_persisted = {
|
||||||
name = "persisted";
|
name = "persisted";
|
||||||
pkg = pkgs.vimPlugins.persisted-nvim;
|
pkg = pkgs.vimPlugins.persisted-nvim;
|
||||||
@ -1194,6 +1195,9 @@ in {
|
|||||||
vim.g.rustaceanvim = {
|
vim.g.rustaceanvim = {
|
||||||
tools = {
|
tools = {
|
||||||
enable_clippy = true,
|
enable_clippy = true,
|
||||||
|
float_win_config = {
|
||||||
|
border = "rounded",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
server = {
|
server = {
|
||||||
|
@ -9,7 +9,7 @@ vim.diagnostic.config({
|
|||||||
})
|
})
|
||||||
vim.api.nvim_create_user_command("ToggleInlineDiagnostics", function()
|
vim.api.nvim_create_user_command("ToggleInlineDiagnostics", function()
|
||||||
vim.g.enable_inline_diagnostics = not vim.g.enable_inline_diagnostics
|
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")
|
require("notify")((vim.g.enable_inline_diagnostics and "Enabled" or "Disabled") .. " inline diagnostics")
|
||||||
end, {
|
end, {
|
||||||
desc = "Toggle inline diagnostics",
|
desc = "Toggle inline diagnostics",
|
||||||
|
Reference in New Issue
Block a user