Vanquish ftdetect, long live vim.filetype.add()
This commit is contained in:
19
plugin/filetype.lua
Normal file
19
plugin/filetype.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
cl = 'opencl',
|
||||
def = 'cpp',
|
||||
ll = 'llvm',
|
||||
md = 'markdown',
|
||||
ronn = 'markdown',
|
||||
td = 'tablegen',
|
||||
test = 'llvm',
|
||||
},
|
||||
filename = {
|
||||
['.enter'] = 'zsh',
|
||||
['.exit'] = 'zsh',
|
||||
['CMakeCache.txt'] = 'cmakecache',
|
||||
['lit.cfg'] = 'python',
|
||||
['lit.local.cfg'] = 'python',
|
||||
['requirements.txt'] = 'requirements',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user