diff options
author | smjonas <jonas.strittmatter@gmx.de> | 2023-06-21 07:12:53 +0200 |
---|---|---|
committer | smjonas <jonas.strittmatter@gmx.de> | 2023-06-23 18:18:33 +0200 |
commit | fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2 (patch) | |
tree | be15e9cf139057fec6a29c968525f2715129491f | |
parent | 771dad7a057548356a33c499e907bdd6203ec7bb (diff) | |
download | rneovim-fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2.tar.gz rneovim-fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2.tar.bz2 rneovim-fdf5013e218c55ca8f9bdb7cf5f16f8596330ea2.zip |
fix(filetype): correctly detect bash-fc-{id} files as "sh"
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index fc8871f593..91d5dc1c62 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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) |