fix(filetype): correctly detect bash-fc-{id} files as "sh"

This commit is contained in:
smjonas committed 2023-06-23 18:18:33 +02:00
1 parent 771dad7a05
commit fdf5013e21
1 file changed
+1 -1
+1 -1
View File
@@ -2188,7 +2188,7 @@ local pattern = {
['.*/etc/profile'] = function(path, bufnr)
return require('vim.filetype.detect').sh(path, M.getlines(bufnr))
end,
['bash%-fc[%-%.]'] = function(path, bufnr)
['bash%-fc[%-%.].*'] = function(path, bufnr)
return require('vim.filetype.detect').sh(path, M.getlines(bufnr), 'bash')
end,
['%.tcshrc.*'] = function(path, bufnr)