Add rules to detect filetype of muttrc and offlineimap

This change fixes also the type-detection for files in the
`dotfiles`-dir. That was especially annoying for the git-config files.
This commit is contained in:
2025-10-07 16:34:02 +02:00
parent c6896587c9
commit c1430386c0

View File

@@ -96,8 +96,13 @@ local home = vim.fn.expand("$HOME")
-- fix filetypes -- fix filetypes
fix_filetype("*Containerfile", "dockerfile") fix_filetype("*Containerfile", "dockerfile")
fix_filetype("*.muttrc", "muttrc")
fix_filetype(home.."/.config/git/*", "gitconfig") fix_filetype(home.."/.config/git/*", "gitconfig")
fix_filetype(home.."/dotfiles/.config/git/*", "gitconfig")
fix_filetype(home.."/.config/offlineimap/*", "ini")
fix_filetype(home.."/dotfiles/.config/offlineimap/*", "ini")
fix_filetype(home.."/.local/bin/*", "sh") fix_filetype(home.."/.local/bin/*", "sh")
fix_filetype(home.."/dotfiles/.local/bin/*", "sh")
-- adjust settings per filetype -- adjust settings per filetype
-- git -- git