-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiletype.lua
56 lines (56 loc) · 1.58 KB
/
filetype.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
vim.filetype.add({
extension = {
sbat = "sh",
d2 = "d2",
s = "asm",
conf = "config",
rasi = "rasi",
rofi = "rasi",
wofi = "rasi",
tmpl = "gotmpl",
gotext = "gotmpl",
gohtml = "gotmpl",
zsh = "sh",
sh = "sh",
},
filename = {
[".zshrc"] = "sh",
[".zshenv"] = "sh",
[".zprofile"] = "sh",
[".envrc"] = "sh",
["go.sum"] = "gosum",
["go.mod"] = "gomod",
["go.work"] = "gowork",
},
pattern = {
[".*/.*.nomad.tpl"] = "gotmpl",
[".*/_.*.tpl"] = "gotmpl",
[".*/waybar/config"] = "jsonc",
[".*/dunst/dunstrc"] = "ini",
[".*/mako/config"] = "dosini",
[".*/hypr/.+%.conf"] = "hyprlang",
[".*/kitty/.+%.conf"] = "bash",
["%.env%.[%w_.-]+"] = "sh",
["~/%.config/mutt/%a*"] = "muttrc",
[".*/tasks/.*.yml"] = "yaml.ansible",
[".*/main.yml"] = "yaml.ansible",
[".*/vars/.*.yml"] = "yaml.ansible",
[".*/host_vars/.*.yml"] = "yaml.ansible",
[".*/group_vars/.*.yml"] = "yaml.ansible",
[".*/playbooks/.*.yml"] = "yaml.ansible",
[".*/docker-compose.yml"] = "yaml",
[".*/fontconfig/%a*"] = "xml",
[".*/templates/.*.yml.j2"] = "jinja2.yaml",
[".*/templates/.*.yaml.j2"] = "jinja2.yaml",
[".*/templates/.*.json.j2"] = "jinja2.json",
[".*/templates/.*rc.j2"] = "jinja2.rc",
[".*/templates/.*.sh.j2"] = "jinja2.sh",
[".*/templates/.*.xml.j2"] = "jinja2.xml",
[".*/templates/.*.toml.j2"] = "jinja2.toml",
[".*/templates/.*.ini.j2"] = "jinja2.toml",
[".*/templates/.*.conf.j2"] = "jinja2.conf",
[".*/templates/.*.config.j2"] = "jinja2.javascript",
[".*/templates/.*.css.j2"] = "jinja2.css",
[".*/templates/conf.d/.*.conf.j2"] = "jinja2.nginx",
},
})