aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-04-29 22:10:40 +0200
committerpml68 <tutorialmester@gmail.com>2024-04-29 22:10:40 +0200
commitcc97f02607291b4d82d48b14109acc484c0e9bd2 (patch)
tree97ebb98932d4f39d42ae910b7e20865c792be35d /lua/pml68
parentfeat: map Esc in normal mode to :nohl (diff)
downloadnvim-cc97f02607291b4d82d48b14109acc484c0e9bd2.tar.gz
feat: disable scrollbar for nvim-cmp, add cmp-buffer plugin and source
Diffstat (limited to 'lua/pml68')
-rw-r--r--lua/pml68/configs/cmp.lua4
-rw-r--r--lua/pml68/plugins.lua1
2 files changed, 4 insertions, 1 deletions
diff --git a/lua/pml68/configs/cmp.lua b/lua/pml68/configs/cmp.lua
index bffb09a..eb25218 100644
--- a/lua/pml68/configs/cmp.lua
+++ b/lua/pml68/configs/cmp.lua
@@ -3,14 +3,16 @@ local cmp = require("cmp")
cmp.setup({
sources = {
{ name = 'nvim_lsp' },
- { name = 'path' },
+ { name = 'buffer' },
{ name = 'vimtex' },
{ name = 'crates' },
+ { name = 'path' },
},
window = {
completion = {
border = "rounded",
winhighlight = "Normal:Normal",
+ scrollbar = false,
}
},
preselect = 'item',
diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua
index 4c206a9..f2be37e 100644
--- a/lua/pml68/plugins.lua
+++ b/lua/pml68/plugins.lua
@@ -42,6 +42,7 @@ local plugins = {
end,
},
"hrsh7th/cmp-nvim-lsp",
+ "hrsh7th/cmp-buffer",
"hrsh7th/cmp-path"
},
config = function()