Copilot suggestions still remain after i leave insert mode ( neovim )

Viewed 22

I am using copilot in vim, everything is great but i have a problem. When in insert mode, the copilot automatically suggestion the hint ( gray colors ) but after i leave insert mode, the hint is still visible and it cause irritating. How could i config that the copilot will also remove the hint after i leave insert mode in vim enter image description here

Here is the config what i have so far

vim.api.nvim_create_autocmd({ "InsertLeave" }, {
  callback = function()
    local copilotc = require("copilot")
    copilotc.remove_inlay_hints()
  end
})
0 Answers
Related