fix: add missing border

This commit is contained in:
loichyan 2023-02-05 17:53:01 +08:00
parent 663e142bcd
commit 3f8b9e3781
4 changed files with 11 additions and 0 deletions

View file

@ -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",

View file

@ -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

View file

@ -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)

View file

@ -195,6 +195,7 @@ return {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
lsp_doc_border = true,
},
},
-- stylua: ignore