From 0a8ca50d9e96ae5b84e71146b5eb9d30baabc84a Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Wed, 22 Sep 2021 03:02:20 +0900 Subject: [PATCH] Fix #233 --- plugin/cmp.lua | 3 +++ 1 file changed, 3 insertions(+) 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()]]