We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe9ab1 commit e25f975Copy full SHA for e25f975
lua/copilot/client/init.lua
@@ -172,6 +172,9 @@ end
172
local function on_filetype(bufnr)
173
logger.trace("filetype autocmd called")
174
vim.schedule(function()
175
+ if not vim.api.nvim_buf_is_valid(bufnr) then
176
+ return
177
+ end
178
-- todo: when we do lazy/late attaching this needs changing
179
180
-- This is to handle the case where the filetype changes after the buffer is already attached,
0 commit comments