diff --git a/plugin/cmp.lua b/plugin/cmp.lua index 1b93691..437dc7b 100644 --- a/plugin/cmp.lua +++ b/plugin/cmp.lua @@ -20,9 +20,12 @@ vim.cmd [[ vim.cmd [[inoremap (cmp-autoindent) call v:lua.cmp.autoindent()]] misc.set(_G, { 'cmp', 'autoindent' }, function() local startofline = vim.o.startofline + local virtualedit = vim.o.virtualedit vim.o.startofline = false + vim.o.virtualedit = 'all' vim.cmd [[normal! ==]] vim.o.startofline = startofline + vim.o.virtualedit = virtualedit end) vim.cmd [[command! CmpStatus lua require('cmp').status()]]