diff options
Diffstat (limited to 'runtime/lua')
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index 70e590ed10..b347215895 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -196,6 +196,9 @@ function M.conf(path, bufnr) if vim.fn.did_filetype() ~= 0 or path:find(vim.g.ft_ignore_pat) then return end + if path:find('%.conf$') then + return 'conf' + end for _, line in ipairs(getlines(bufnr, 1, 5)) do if line:find('^#') then return 'conf' |