InsertMode is required
This commit is contained in:
@@ -7,10 +7,7 @@ local WIDE_HEIGHT = 40
|
||||
return function()
|
||||
return {
|
||||
enabled = function()
|
||||
local enabled = true
|
||||
enabled = enabled and vim.api.nvim_buf_get_option(0, 'buftype') ~= 'prompt'
|
||||
enabled = enabled and string.sub(vim.api.nvim_get_mode().mode, 1, 1) == 'i'
|
||||
return enabled
|
||||
return vim.api.nvim_buf_get_option(0, 'buftype') ~= 'prompt'
|
||||
end,
|
||||
completion = {
|
||||
autocomplete = {
|
||||
|
||||
Reference in New Issue
Block a user