From 8ab6c6b9642cf14fb677da342d137054fe4c3166 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 4 Jan 2025 21:14:46 -0800 Subject: [PATCH] fix: Set env files ft --- nvim/lua/plugins/treesitter/nvim-treesitter.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/lua/plugins/treesitter/nvim-treesitter.lua b/nvim/lua/plugins/treesitter/nvim-treesitter.lua index 93e568c..dbe94ec 100644 --- a/nvim/lua/plugins/treesitter/nvim-treesitter.lua +++ b/nvim/lua/plugins/treesitter/nvim-treesitter.lua @@ -10,13 +10,14 @@ return { end, after = function() vim.filetype.add({ - extension = { rasi = 'rasi', rofi = 'rasi', wofi = 'rasi' }, + extension = { rasi = 'rasi', rofi = 'rasi', wofi = 'rasi', env = 'conf' }, + filename = { ['.env'] = 'conf' }, pattern = { ['.*/waybar/config'] = 'jsonc', ['.*/mako/config'] = 'dosini', ['.*/kitty/.+%.conf'] = 'kitty', ['.*/hypr/.+*.conf'] = 'hyprlang', - ['%.env%.[%w_.-]+'] = 'sh', + ['%.env%.[%w_.-]+'] = 'conf', }, })