feat(dot): add more filetypes

Adds dotenv files support for file names like
prod.env
.env
.env.xyz

Also adds configurationfiletypes rofi, wofi and vimfmrc
This commit is contained in:
Rubin Bhandari 2024-04-15 12:01:12 +05:45 committed by GitHub
parent bb36f71b77
commit 3e42384b5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,12 +35,17 @@ return {
end end
vim.filetype.add({ vim.filetype.add({
extension = { rasi = "rasi" }, extension = { rasi = "rasi", rofi = "rasi", wofi = "rasi" },
filename = {
[".env"] = "dotenv",
["vifmrc"] = "vim",
},
pattern = { pattern = {
[".*/waybar/config"] = "jsonc", [".*/waybar/config"] = "jsonc",
[".*/mako/config"] = "dosini", [".*/mako/config"] = "dosini",
[".*/kitty/*.conf"] = "bash", [".*/kitty/*.conf"] = "bash",
[".*/hypr/.*%.conf"] = "hyprlang", [".*/hypr/.*%.conf"] = "hyprlang",
["%.env%.[%w_.-]+"] = "dotenv",
}, },
}) })