From d01ee98ec53c39dc1c7002abff2adc92d0f90465 Mon Sep 17 00:00:00 2001 From: spinach Date: Tue, 27 Feb 2024 13:25:45 -0500 Subject: [PATCH] switching from autobuf to filetype commands to recognize configs and calcurse notes --- config/lua/filetype.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/lua/filetype.lua b/config/lua/filetype.lua index 9926d0d..097a738 100644 --- a/config/lua/filetype.lua +++ b/config/lua/filetype.lua @@ -3,15 +3,13 @@ -- sway config vim.filetype.add({ pattern = { - ['~/.config/sway/*'] = 'swayconfig', - ['~/.dotfiles/gui/sway/*'] = 'swayconfig', + ['$HOME/.config/sway/*;$HOME/.dotfiles/gui/sway/*'] = 'swayconfig', }, }) -- calcurse notes as markdown vim.filetype.add({ pattern = { - ['/tmp/calcurse*'] = 'markdown', - ['~/.local/share/calcursen/notes/*'] = 'markdown', + ['/tmp/calcurse*;$HOME/.local/share/calcurse/notes/*'] = 'markdown', }, })