summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins/nvim_cmp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix/plugins/nvim_cmp.lua')
-rw-r--r--lua/aotrix/plugins/nvim_cmp.lua19
1 files changed, 4 insertions, 15 deletions
diff --git a/lua/aotrix/plugins/nvim_cmp.lua b/lua/aotrix/plugins/nvim_cmp.lua
index 09bd142..a9fc176 100644
--- a/lua/aotrix/plugins/nvim_cmp.lua
+++ b/lua/aotrix/plugins/nvim_cmp.lua
@@ -64,23 +64,11 @@ return { -- Autocompletion
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm {select = true},
- -- If you prefer more traditional completion keymaps,
- -- you can uncomment the following lines
- -- ['<CR>'] = cmp.mapping.confirm { select = true },
- -- ['<Tab>'] = cmp.mapping.select_next_item(),
- -- ['<S-Tab>'] = cmp.mapping.select_prev_item(),
-
-- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display
-- completions whenever it has completion options available.
['<C-Space>'] = cmp.mapping.complete {},
- -- Think of <c-k> as moving to the right of your snippet expansion.
- -- So if you have a snippet that's like:
- -- function $name($args)
- -- $body
- -- end
- --
-- <c-k> will move you to the right of each of the expansion locations.
-- <c-j> is similar, except moving you backwards.
['<C-k>'] = cmp.mapping(function()
@@ -93,13 +81,14 @@ return { -- Autocompletion
luasnip.jump(-1)
end
end, {'i', 's'})
-
- -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
- -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
},
sources = {
{name = 'nvim_lsp'}, {name = 'luasnip'}, {name = 'path'},
{name = 'nvim_lsp_signature_help'}
+ },
+ window = {
+ completion = cmp.config.window.bordered(),
+ documentation = cmp.config.window.bordered()
}
}
end