-
Notifications
You must be signed in to change notification settings - Fork 0
/
filetype.lua
40 lines (38 loc) · 1.02 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
-- Filetype detection
--
-- Enable neovim runtime filetype.lua
vim.g.do_filetype_lua = 1
-- Disable neovim runtime filetype.vim
-- vim.g.did_load_filetypes = 1
vim.filetype.add({
-- extension = {
-- foo = "fooscript",
-- },
filename = {
['go.sum'] = 'go',
['Brewfile'] = 'ruby',
['Tmuxfile'] = 'tmux',
['yarn.lock'] = 'yaml',
['.buckconfig'] = 'toml',
['.flowconfig'] = 'ini',
['.tern-project'] = 'json',
['.jsbeautifyrc'] = 'json',
['.jscsrc'] = 'json',
['.watchmanconfig'] = 'json',
},
pattern = {
['.*%.js%.map'] = 'json',
['.*%.postman_collection'] = 'json',
['Jenkinsfile.*'] = 'groovy',
['%.kube/config'] = 'yaml',
['%.config/git/users/.*'] = 'gitconfig',
['.*/templates/.*%.yaml'] = 'helm',
['.*/templates/.*%.yml'] = 'helm',
['.*/templates/.*%.tpl'] = 'helm',
['.*/playbooks/.*%.yaml'] = 'yaml.ansible',
['.*/playbooks/.*%.yml'] = 'yaml.ansible',
['.*/roles/.*%.yaml'] = 'yaml.ansible',
['.*/roles/.*%.yml'] = 'yaml.ansible',
['.*/inventory/.*%.ini'] = 'ansible_hosts',
},
})