This commit is contained in:
hrsh7th
2021-09-29 21:20:35 +09:00
parent f56e6b5ee4
commit a63a1a23e9
3 changed files with 21 additions and 14 deletions

View File

@@ -17,17 +17,6 @@ vim.cmd [[
augroup END
]]
vim.cmd [[inoremap <silent> <Plug>(cmp-autoindent) <Cmd>call v:lua.cmp.autoindent()<CR>]]
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()]]
vim.cmd [[doautocmd <nomodeline> User cmp#ready]]