disable cmdline for now

This commit is contained in:
hrsh7th 2021-10-16 18:55:23 +09:00
parent 825933fb68
commit 61b1beca1b
2 changed files with 3 additions and 3 deletions

View file

@ -83,8 +83,8 @@ return function()
mapping = {
['<Down>'] = mapping(mapping.select_next_item({ behavior = types.cmp.SelectBehavior.Select }), { 'i' }),
['<Up>'] = mapping(mapping.select_prev_item({ behavior = types.cmp.SelectBehavior.Select }), { 'i' }),
['<C-n>'] = mapping(mapping.select_next_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i', 'c' }),
['<C-p>'] = mapping(mapping.select_prev_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i', 'c' }),
['<C-n>'] = mapping(mapping.select_next_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i' }),
['<C-p>'] = mapping(mapping.select_prev_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i' }),
},
formatting = {

View file

@ -23,7 +23,7 @@ api.is_select_mode = function()
end
api.is_suitable_mode = function()
return api.is_insert_mode() or api.is_cmdline_mode()
return api.is_insert_mode()
end
api.get_current_line = function()