From 238dae78d711291b8bb4fae77677f8eb8613906d Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 20 Nov 2021 16:57:03 +0100 Subject: [PATCH 1/4] [system] feat: add LATEX_RESOURCES variable --- .config/zsh/.zprofile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index bd0ee81..629898e 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -3,8 +3,9 @@ # This file is sourced when launching a DM from startx/xinit # environment variables -## dotfiles +## custom paths export DOTFILES="$HOME/.dotfiles.git" +export LATEX_RESOURCES="$HOME/documents/latex" ## XDG_BASE_DIRECTORIES export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" From 562672bbf11040df0c31f16c44dc4c1c05510582 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 20 Nov 2021 17:09:35 +0100 Subject: [PATCH 2/4] [nvim] feat: improve snippets exit on the next line --- .config/nvim/lua/plugin/luasnip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugin/luasnip.lua b/.config/nvim/lua/plugin/luasnip.lua index 9531bf0..8e1e5cd 100644 --- a/.config/nvim/lua/plugin/luasnip.lua +++ b/.config/nvim/lua/plugin/luasnip.lua @@ -433,7 +433,7 @@ ls.snippets = { i(1), t({ "" }), d(2, rec_ls, {}), - t({ "", "\\end{itemize}" }), + t({ "", "\\end{itemize}", "" }), }), s("frm", { t({ "\\begin{" }), @@ -448,7 +448,7 @@ ls.snippets = { i(0), t({ "", "\\end{" }), f(copy, 1), - t({ "}" }), + t({ "}", "" }), }), s("rmk", { t({ "\\begin{rmk}" }), From b057e1566b2374e6e87af7fb0ab5eade12050135 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 20 Nov 2021 17:10:19 +0100 Subject: [PATCH 3/4] [nvim] feat: add env snippet !!!BREAKING : remove "rmk" snippet --- .config/nvim/lua/plugin/luasnip.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/plugin/luasnip.lua b/.config/nvim/lua/plugin/luasnip.lua index 8e1e5cd..736acdc 100644 --- a/.config/nvim/lua/plugin/luasnip.lua +++ b/.config/nvim/lua/plugin/luasnip.lua @@ -450,12 +450,14 @@ ls.snippets = { f(copy, 1), t({ "}", "" }), }), - s("rmk", { - t({ "\\begin{rmk}" }), - t({ "", "\t" }), - i(1), + s("env", { + t({ "\\begin{" }), + i(1, "foo"), + t({ "}", "\t" }), + i(2), t({ "", "\\end{" }), - i(0), + f(copy,1), + t({ "}", "" }), }), }, From a5d532394a5b345b1e85e29f84fffa165231204e Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 20 Nov 2021 19:10:24 +0100 Subject: [PATCH 4/4] [sxhkd] fix: tmux session name for irc --- .config/sxhkd/sxhkdrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 3bdef2e..687ef73 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -66,7 +66,7 @@ super + shift + n $TERMINAL -g 128x32 -c "floating" -e tsession "mail" "$MAIL_CLIENT" super + shift + i - $TERMINAL -g 128x32 -c "floating" -e tsession "mail" "$IRC_CLIENT" + $TERMINAL -g 128x32 -c "floating" -e tsession "irc" "$IRC_CLIENT" super + shift + t $TERMINAL -g 128x32 -c "floating" -e tremc