From 0321fa4d2bffb73e47bd4dc075ef3fb07f4ffae4 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Wed, 14 Aug 2024 21:15:45 +0700 Subject: [PATCH] cmp: add border to completion window --- lua/plugins/cmp.lua | 3 +++ lua/plugins/noice.lua | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 lua/plugins/noice.lua diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 8fae20d..b2ebb42 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -16,6 +16,9 @@ return { opts = function(_, opts) local cmp = require "cmp" table.insert(opts.sources, 3, { name = "async_path" }) + opts.window = { + completion = cmp.config.window.bordered(), + } if vim.fn.exepath "rg" ~= "" then table.insert(opts.sources, 4, { name = "rg" }) diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua new file mode 100644 index 0000000..ca1566f --- /dev/null +++ b/lua/plugins/noice.lua @@ -0,0 +1,9 @@ +return { + "folke/noice.nvim", + opts = { + presets = { + lsp_doc_border = true, + inc_rename = true, + }, + }, +}