diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-04-29 22:10:40 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-04-29 22:10:40 +0200 |
| commit | cc97f02607291b4d82d48b14109acc484c0e9bd2 (patch) | |
| tree | 97ebb98932d4f39d42ae910b7e20865c792be35d | |
| parent | feat: map Esc in normal mode to :nohl (diff) | |
| download | nvim-cc97f02607291b4d82d48b14109acc484c0e9bd2.tar.gz | |
feat: disable scrollbar for nvim-cmp, add cmp-buffer plugin and source
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/configs/cmp.lua | 4 | ||||
| -rw-r--r-- | lua/pml68/plugins.lua | 1 |
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() |
