diff --git a/lua/copilot/util.lua b/lua/copilot/util.lua index 7dbc1b0f..b66a1bfc 100644 --- a/lua/copilot/util.lua +++ b/lua/copilot/util.lua @@ -107,7 +107,7 @@ function M.should_attach() return false, "buffer not 'buflisted'" end - if not vim.bo.buftype == "" then + if vim.bo.buftype ~= "" then return false, "buffer 'buftype' is " .. vim.bo.buftype end