fix: Set env files ft

This commit is contained in:
punkfairie 2025-01-04 21:14:46 -08:00
parent 45bbe9938f
commit 8ab6c6b964
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -10,13 +10,14 @@ return {
end, end,
after = function() after = function()
vim.filetype.add({ vim.filetype.add({
extension = { rasi = 'rasi', rofi = 'rasi', wofi = 'rasi' }, extension = { rasi = 'rasi', rofi = 'rasi', wofi = 'rasi', env = 'conf' },
filename = { ['.env'] = 'conf' },
pattern = { pattern = {
['.*/waybar/config'] = 'jsonc', ['.*/waybar/config'] = 'jsonc',
['.*/mako/config'] = 'dosini', ['.*/mako/config'] = 'dosini',
['.*/kitty/.+%.conf'] = 'kitty', ['.*/kitty/.+%.conf'] = 'kitty',
['.*/hypr/.+*.conf'] = 'hyprlang', ['.*/hypr/.+*.conf'] = 'hyprlang',
['%.env%.[%w_.-]+'] = 'sh', ['%.env%.[%w_.-]+'] = 'conf',
}, },
}) })