From ba56e6f54667f901dd5c3e956eed4ca2069d2dda Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 11 Jan 2024 17:59:46 +0100 Subject: [PATCH] nvim: Add ft detection for dvc files Added ftdetect folder for files from dvc. --- nvim/.config/nvim/ftdetect/dvc.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nvim/.config/nvim/ftdetect/dvc.lua diff --git a/nvim/.config/nvim/ftdetect/dvc.lua b/nvim/.config/nvim/ftdetect/dvc.lua new file mode 100644 index 0000000..392ebee --- /dev/null +++ b/nvim/.config/nvim/ftdetect/dvc.lua @@ -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", + } +})