From 15b09e800ba7fb0c9ca8270a77e71083396e9db1 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Mon, 22 Apr 2024 13:34:16 +0545 Subject: [PATCH] feat(dot): add more filetypes (#2987) Adds dotenv files support for file names like prod.env .env .env.xyz Also adds configurationfiletypes rofi, wofi and vimfmrc --- lua/lazyvim/plugins/extras/util/dot.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/util/dot.lua b/lua/lazyvim/plugins/extras/util/dot.lua index cf5c048f..26af6a9b 100644 --- a/lua/lazyvim/plugins/extras/util/dot.lua +++ b/lua/lazyvim/plugins/extras/util/dot.lua @@ -35,12 +35,17 @@ return { end vim.filetype.add({ - extension = { rasi = "rasi" }, + extension = { rasi = "rasi", rofi = "rasi", wofi = "rasi" }, + filename = { + [".env"] = "dotenv", + ["vifmrc"] = "vim", + }, pattern = { [".*/waybar/config"] = "jsonc", [".*/mako/config"] = "dosini", [".*/kitty/*.conf"] = "bash", [".*/hypr/.*%.conf"] = "hyprlang", + ["%.env%.[%w_.-]+"] = "dotenv", }, })