cmp: add border to completion window

This commit is contained in:
Tigor Hutasuhut 2024-08-14 21:15:45 +07:00
parent 5624e2f694
commit 0321fa4d2b
2 changed files with 12 additions and 0 deletions

View file

@ -16,6 +16,9 @@ return {
opts = function(_, opts) opts = function(_, opts)
local cmp = require "cmp" local cmp = require "cmp"
table.insert(opts.sources, 3, { name = "async_path" }) table.insert(opts.sources, 3, { name = "async_path" })
opts.window = {
completion = cmp.config.window.bordered(),
}
if vim.fn.exepath "rg" ~= "" then if vim.fn.exepath "rg" ~= "" then
table.insert(opts.sources, 4, { name = "rg" }) table.insert(opts.sources, 4, { name = "rg" })

9
lua/plugins/noice.lua Normal file
View file

@ -0,0 +1,9 @@
return {
"folke/noice.nvim",
opts = {
presets = {
lsp_doc_border = true,
inc_rename = true,
},
},
}