Skip to content

Commit

Permalink
vim: Fix some completion bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Aug 21, 2024
1 parent fbb45a6 commit 96b032b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .config/nvim/lua/init/plug_cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ cmp.setup {
cmp.abort()
fallback()
end,
['<CR>'] = cmp_or(cmp.confirm),
['<C-N>'] = cmp_or(cmp_select_next, cmp_complete_buffer_all),
['<C-P>'] = cmp_or(cmp_select_prev, cmp_complete_buffer_all),
['<C-X><C-N>'] = cmp_or(cmp_select_next, cmp_complete_buffer_current),
Expand All @@ -152,7 +153,7 @@ cmp.setup {
confirmation = {
get_commit_characters = function(commit_characters)
return {
' ', '\r',
' ',
'.', ',',
':', ';',
'(', ')',
Expand Down
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
url = https://github.com/nvim-lua/plenary.nvim
[submodule ".local/share/nvim/site/bundle/nvim-cmp"]
path = .local/share/nvim/site/bundle/nvim-cmp
url = https://github.com/hrsh7th/nvim-cmp
# url = https://github.com/hrsh7th/nvim-cmp
url = https://github.com/liskin/nvim-cmp
[submodule ".local/share/nvim/site/bundle/cmp-cmdline"]
path = .local/share/nvim/site/bundle/cmp-cmdline
url = https://github.com/hrsh7th/cmp-cmdline
Expand Down

0 comments on commit 96b032b

Please sign in to comment.