nvim: Add ft detection for dvc files
Added ftdetect folder for files from dvc.
This commit is contained in:
parent
2f69b955d2
commit
ba56e6f546
1 changed files with 11 additions and 0 deletions
11
nvim/.config/nvim/ftdetect/dvc.lua
Normal file
11
nvim/.config/nvim/ftdetect/dvc.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
-- Set filetypes for 'data version control'
|
||||||
|
-- dvc works with yaml file types
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
dvc = "yaml",
|
||||||
|
},
|
||||||
|
filename = {
|
||||||
|
["Dvcfile"] = "yaml",
|
||||||
|
["dvc.lock"] = "yaml",
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in a new issue