-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathfiletype.lua
More file actions
32 lines (30 loc) · 972 Bytes
/
Copy pathfiletype.lua
File metadata and controls
32 lines (30 loc) · 972 Bytes
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
vim.filetype.add({
extension = {
rasi = 'rasi',
rofi = 'rasi',
wofi = 'rasi',
mdx = 'markdown.mdx',
mdc = 'markdown',
},
filename = {
['docker-compose.yml'] = 'yaml.docker-compose',
['docker-compose.yaml'] = 'yaml.docker-compose',
['compose.yml'] = 'yaml.docker-compose',
['compose.yaml'] = 'yaml.docker-compose',
['.env'] = 'dotenv',
['vifmrc'] = 'vim',
},
pattern = {
['.*%.gitconfig'] = 'gitconfig',
['compose%..*%.ya?ml'] = 'yaml.docker-compose',
['docker%-compose%..*%.ya?ml'] = 'yaml.docker-compose',
['.*%.twig'] = 'twig.html',
['.*/waybar/config'] = 'jsonc',
['.*/mako/config'] = 'dosini',
['.*/kitty/.*%.conf'] = 'bash',
['.*/hypr/.*%.conf'] = 'hyprlang',
['%.env%.[%w_.-]+'] = 'dotenv',
['.*%.log'] = 'log',
['.*%.conf'] = { 'conf', { priority = -1 } },
},
})