mirror of
https://github.com/neovim/neovim
synced 2025-07-17 01:31:48 +00:00
fix(filetype): correctly detect bash-fc-{id} files as "sh"
This commit is contained in:
@ -2188,7 +2188,7 @@ local pattern = {
|
|||||||
['.*/etc/profile'] = function(path, bufnr)
|
['.*/etc/profile'] = function(path, bufnr)
|
||||||
return require('vim.filetype.detect').sh(path, M.getlines(bufnr))
|
return require('vim.filetype.detect').sh(path, M.getlines(bufnr))
|
||||||
end,
|
end,
|
||||||
['bash%-fc[%-%.]'] = function(path, bufnr)
|
['bash%-fc[%-%.].*'] = function(path, bufnr)
|
||||||
return require('vim.filetype.detect').sh(path, M.getlines(bufnr), 'bash')
|
return require('vim.filetype.detect').sh(path, M.getlines(bufnr), 'bash')
|
||||||
end,
|
end,
|
||||||
['%.tcshrc.*'] = function(path, bufnr)
|
['%.tcshrc.*'] = function(path, bufnr)
|
||||||
|
Reference in New Issue
Block a user