Skip to content

Commit be36605

Browse files
committed
allow overriding default disabled filetypes
The check for 'filetype' in the internal_filetypes map has been removed from the is_ft_disabled function. This change allows users to override default disabled filetypes.
1 parent bb2a4ee commit be36605

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lua/copilot/client/filetypes.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ function M.is_ft_disabled(ft, filetypes)
6969
string.format("'filetype' %s rejected by config filetypes[%s]", ft, "*")
7070
end
7171

72-
if M.internal_filetypes[short_ft] ~= nil then
73-
return not M.internal_filetypes[short_ft],
74-
string.format("'filetype' %s rejected by internal_filetypes[%s]", ft, short_ft)
75-
end
76-
7772
return false
7873
end
7974

0 commit comments

Comments
 (0)