Improve cmdline handling
This commit is contained in:
@@ -30,6 +30,7 @@ misc.set(_G, { 'cmp', 'plugin', 'cmdline', 'enter' }, function()
|
||||
end
|
||||
local cmdtype = vim.fn.expand('<afile>')
|
||||
if cmdtype ~= '=' then
|
||||
if api.is_cmdline_mode() then
|
||||
vim.cmd [[
|
||||
augroup cmp-cmdline
|
||||
autocmd!
|
||||
@@ -38,6 +39,7 @@ misc.set(_G, { 'cmp', 'plugin', 'cmdline', 'enter' }, function()
|
||||
]]
|
||||
require('cmp.utils.autocmd').emit('InsertEnter')
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
misc.set(_G, { 'cmp', 'plugin', 'cmdline', 'leave' }, function()
|
||||
|
||||
Reference in New Issue
Block a user