diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2023-11-12 22:23:22 +0100 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2023-11-12 22:23:22 +0100 |
commit | 2e401e09fb968ab2fd8f6394a10fe7d71a740f80 (patch) | |
tree | c5442876a6c5174a315f1ecabcdcc6874d97cfbd | |
parent | 37d62823fdf229808f1b822b61ec6f0af9300d1f (diff) | |
parent | fa94716dce3f4c65161cf989a80617400af6be3a (diff) |
Merge remote-tracking branch 'upstream/master'
- fix(auto-completion): ensure first menu item is selected by default
-rw-r--r-- | lua/cmp-setup.lua | 3 |
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(), |