diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2025-02-09 10:54:12 -0500 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2025-05-28 16:27:11 -0400 |
| commit | 1a924cb0b24ba5799b3c4d5b550d940cfeb1a9df (patch) | |
| tree | 2819f6bff8061c9b96540e945404d580aa74f84a /.config/nvim/lua/autocomplete.lua | |
| parent | 43f27b977310b0f83075d5327855e92d9873b046 (diff) | |
many things.
Diffstat (limited to '.config/nvim/lua/autocomplete.lua')
| -rw-r--r-- | .config/nvim/lua/autocomplete.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/.config/nvim/lua/autocomplete.lua b/.config/nvim/lua/autocomplete.lua index 1de4271..7746750 100644 --- a/.config/nvim/lua/autocomplete.lua +++ b/.config/nvim/lua/autocomplete.lua @@ -1,6 +1,7 @@ -- Set up nvim-cmp. local cmp = require 'cmp' + cmp.setup({ snippet = { -- REQUIRED - you must specify a snippet engine @@ -11,11 +12,12 @@ cmp.setup({ -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users. end, }, - experimental = { - ghost_text = { - hl_group = "CmpGhostText", - }, - }, + -- can't figure this out, could be cool if ghost text actually took on different color + -- experimental = { + -- ghost_text = { + -- hl_group = "CmpGhostText", + -- }, + -- }, window = { completion = cmp.config.window.bordered({ border = 'none' }), documentation = cmp.config.window.bordered({ border = 'none' }), @@ -24,7 +26,7 @@ cmp.setup({ ['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-y>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. - ['<C-e>'] = cmp.mapping.abort(), + ['<C-c>'] = cmp.mapping.complete(), }), sources = cmp.config.sources({ { name = 'nvim_lsp' }, @@ -37,7 +39,7 @@ cmp.setup({ { name = 'buffer' }, }), completion = { - autocomplete = false + autocomplete = false, } }) |
