Skip to content

Commit

Permalink
feat: hide completion widgets when leaving insert mode (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyaowong committed Sep 29, 2023
1 parent ac7f4e7 commit 6d1dbba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/lua/vscode-neovim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ M.setup = function()
cursor.setup()
end

vim.api.nvim_create_autocmd("InsertLeave", {
callback = function()
vim.fn.VSCodeNotify("hideSuggestWidget")
vim.fn.VSCodeNotify("closeParameterHints")
vim.fn.VSCodeNotify("editor.action.inlineSuggest.hide")
end,
})

return M

0 comments on commit 6d1dbba

Please sign in to comment.