Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit e601a39

Browse files
authored
fix: only attach to normal buffers (zbirenbaum#333)
`not vim.bo.buftype == ""` means `(not vim.bo.buftype) == ""` in Lua…
1 parent c810500 commit e601a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function M.should_attach()
107107
return false, "buffer not 'buflisted'"
108108
end
109109

110-
if not vim.bo.buftype == "" then
110+
if vim.bo.buftype ~= "" then
111111
return false, "buffer 'buftype' is " .. vim.bo.buftype
112112
end
113113

0 commit comments

Comments
 (0)