diff --git a/.config/nvim/lua/init/plug_cmp.lua b/.config/nvim/lua/init/plug_cmp.lua index 23373b6f..4745a797 100644 --- a/.config/nvim/lua/init/plug_cmp.lua +++ b/.config/nvim/lua/init/plug_cmp.lua @@ -142,6 +142,7 @@ cmp.setup { cmp.abort() fallback() end, + [''] = cmp_or(cmp.confirm), [''] = cmp_or(cmp_select_next, cmp_complete_buffer_all), [''] = cmp_or(cmp_select_prev, cmp_complete_buffer_all), [''] = cmp_or(cmp_select_next, cmp_complete_buffer_current), @@ -152,7 +153,7 @@ cmp.setup { confirmation = { get_commit_characters = function(commit_characters) return { - ' ', '\r', + ' ', '.', ',', ':', ';', '(', ')', diff --git a/.gitmodules b/.gitmodules index f721c3a0..a8fa3cd4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/.local/share/nvim/site/bundle/nvim-cmp b/.local/share/nvim/site/bundle/nvim-cmp index 24122371..74532ecf 160000 --- a/.local/share/nvim/site/bundle/nvim-cmp +++ b/.local/share/nvim/site/bundle/nvim-cmp @@ -1 +1 @@ -Subproject commit 24122371810089d390847d8ba66325c1f1aa64c0 +Subproject commit 74532ecf123764ee400176c24b1bd04a641d6c70