From 3f8b9e378170363d6540aaa81dd97a49d5bfb52b Mon Sep 17 00:00:00 2001 From: loichyan Date: Sun, 5 Feb 2023 17:53:01 +0800 Subject: [PATCH] fix: add missing border --- lua/lazyvim/plugins/coding.lua | 5 +++++ lua/lazyvim/plugins/editor.lua | 2 ++ lua/lazyvim/plugins/lsp/init.lua | 3 +++ lua/lazyvim/plugins/ui.lua | 1 + 4 files changed, 11 insertions(+) diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index 8bbe342d..d9235a67 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -40,6 +40,7 @@ return { }, opts = function() local cmp = require("cmp") + local bordered = require("cmp.config.window").bordered return { completion = { completeopt = "menu,menuone,noinsert", @@ -71,6 +72,10 @@ return { return item end, }, + window = { + completion = bordered("rounded"), + documentation = bordered("rounded"), + }, experimental = { ghost_text = { hl_group = "LspCodeLens", diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index e7352d53..9aa13942 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -159,6 +159,7 @@ return { event = "VeryLazy", opts = { plugins = { spelling = true }, + window = { border = "rounded" }, }, config = function(_, opts) local wk = require("which-key") @@ -198,6 +199,7 @@ return { changedelete = { text = "▎" }, untracked = { text = "▎" }, }, + preview_config = { border = "rounded" }, on_attach = function(buffer) local gs = package.loaded.gitsigns diff --git a/lua/lazyvim/plugins/lsp/init.lua b/lua/lazyvim/plugins/lsp/init.lua index 3a7cdfb4..fa65f769 100644 --- a/lua/lazyvim/plugins/lsp/init.lua +++ b/lua/lazyvim/plugins/lsp/init.lua @@ -115,6 +115,7 @@ return { end end + require("lspconfig.ui.windows").default_options.border = "rounded" require("mason-lspconfig").setup({ ensure_installed = ensure_installed }) require("mason-lspconfig").setup_handlers({ setup }) end, @@ -133,6 +134,7 @@ return { nls.builtins.formatting.stylua, nls.builtins.diagnostics.flake8, }, + border = "rounded", } end, }, @@ -150,6 +152,7 @@ return { "shfmt", "flake8", }, + ui = { border = "rounded" }, }, ---@param opts MasonSettings | {ensure_installed: string[]} config = function(plugin, opts) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index c4641de3..3148a86a 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -195,6 +195,7 @@ return { bottom_search = true, command_palette = true, long_message_to_split = true, + lsp_doc_border = true, }, }, -- stylua: ignore