diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2024-02-29 22:57:46 -0500 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2024-02-29 22:57:46 -0500 |
| commit | 82092fe19a0ff0d0e4bed2ccfd4351cbb2d10d9e (patch) | |
| tree | b096fcf91d3739649dabad3a7176709d914ff877 /.config/nvim/lua/autocomplete.lua | |
| parent | 68677e4b0faec5b746a27bec036477ebf718f3c0 (diff) | |
embrace autocomplete defaults, add nocheckin pre-commit hook
Diffstat (limited to '.config/nvim/lua/autocomplete.lua')
| -rw-r--r-- | .config/nvim/lua/autocomplete.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.config/nvim/lua/autocomplete.lua b/.config/nvim/lua/autocomplete.lua index 8531258..8d624fa 100644 --- a/.config/nvim/lua/autocomplete.lua +++ b/.config/nvim/lua/autocomplete.lua @@ -28,29 +28,6 @@ cmp.setup({ ['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-Space>'] = cmp.mapping.complete(), ['<C-e>'] = cmp.mapping.abort(), - ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. - ["<Tab>"] = cmp.mapping(function(fallback) - if vim.fn.pumvisible() == 1 then - feedkey("<C-n>", "n") - elseif cmp.visible() then - cmp.select_next_item() - else - fallback() - end - end, { - "i", - }), - ["<S-Tab>"] = cmp.mapping(function(fallback) - if vim.fn.pumvisible() == 1 then - feedkey("<C-p>", "n") - elseif cmp.visible() then - cmp.select_prev_item() - else - fallback() - end - end, { - "i", - }), }), sources = cmp.config.sources({ { name = 'nvim_lsp' }, |
