From 532ec3e17f3083b5cf15462d262965b18246201c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 30 Dec 2022 21:06:14 +1000 Subject: [PATCH] rounded somethign --- home/profiles/nvim/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/profiles/nvim/default.nix b/home/profiles/nvim/default.nix index d9c5a26d..ed1d7014 100644 --- a/home/profiles/nvim/default.nix +++ b/home/profiles/nvim/default.nix @@ -467,6 +467,14 @@ in } ) + local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview + function vim.lsp.util.open_floating_preview(contents, syntax, opts, ...) + opts = opts or {} + opts.border = opts.border or 'rounded' + return orig_util_open_floating_preview(contents, syntax, opts, ...) + end + + vim.api.nvim_set_keymap('n', 'vt', ':call v:lua.toggle_diagnostics()', {noremap = true, silent = true}) -- autopairs