diff options
| author | Aotrix <[email protected]> | 2025-02-27 22:08:18 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-27 22:08:18 +0100 |
| commit | 68b3193635f332d1a78993cf9a4f9711d7a3981f (patch) | |
| tree | 417495d3f8a91dc45cf93c662b0cc1e5e8b0d231 /lua/aotrix/plugins/nvim_cmp.lua | |
| parent | 6e90ce987af1e4b16df100dc010451ef2920b237 (diff) | |
removed transparency
Diffstat (limited to 'lua/aotrix/plugins/nvim_cmp.lua')
| -rw-r--r-- | lua/aotrix/plugins/nvim_cmp.lua | 19 |
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 |
