aboutsummaryrefslogtreecommitdiff
path: root/lua/cmp-setup.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2023-11-12 22:23:22 +0100
committerDamjan 9000 <damjan.9000@gmail.com>2023-11-12 22:23:22 +0100
commit2e401e09fb968ab2fd8f6394a10fe7d71a740f80 (patch)
treec5442876a6c5174a315f1ecabcdcc6874d97cfbd /lua/cmp-setup.lua
parent37d62823fdf229808f1b822b61ec6f0af9300d1f (diff)
parentfa94716dce3f4c65161cf989a80617400af6be3a (diff)
Merge remote-tracking branch 'upstream/master'
- fix(auto-completion): ensure first menu item is selected by default
Diffstat (limited to 'lua/cmp-setup.lua')
-rw-r--r--lua/cmp-setup.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/cmp-setup.lua b/lua/cmp-setup.lua
index ce389e4..a78aded 100644
--- a/lua/cmp-setup.lua
+++ b/lua/cmp-setup.lua
@@ -11,6 +11,9 @@ cmp.setup {
luasnip.lsp_expand(args.body)
end,
},
+ completion = {
+ completeopt = 'menu,menuone,noinsert'
+ },
mapping = cmp.mapping.preset.insert {
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-p>'] = cmp.mapping.select_prev_item(),