-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfiletype.lua
More file actions
31 lines (29 loc) · 931 Bytes
/
filetype.lua
File metadata and controls
31 lines (29 loc) · 931 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
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 = {
['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 } },
},
})