From 8dd9ab0ae5ea014625ee5a5ece9dd630e54b0e4d Mon Sep 17 00:00:00 2001 From: wenjin Date: Mon, 10 Feb 2025 17:55:52 +0800 Subject: [PATCH] feat: enable in nofile or not listed buffer related to https://github.com/zbirenbaum/copilot.lua/issues/239 --- lua/copilot/util.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lua/copilot/util.lua b/lua/copilot/util.lua index b66a1bfc..3be47741 100644 --- a/lua/copilot/util.lua +++ b/lua/copilot/util.lua @@ -103,14 +103,6 @@ function M.should_attach() return not ft_disabled, ft_disabled_reason end - if not vim.bo.buflisted then - return false, "buffer not 'buflisted'" - end - - if vim.bo.buftype ~= "" then - return false, "buffer 'buftype' is " .. vim.bo.buftype - end - return true end