From 65b50cb0e05dffb5f4a8c97d204ac52a8a4741d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Janou=C5=A1ek?= Date: Sun, 3 Nov 2024 02:14:01 +0000 Subject: [PATCH] fix: only attach to normal buffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `not vim.bo.buftype == ""` means `(not vim.bo.buftype) == ""` in Lua… --- lua/copilot/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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