From 6c9b28b9594b7322a5c53d72fe9a21c7ad7b7d39 Mon Sep 17 00:00:00 2001 From: ottjk Date: Fri, 23 Aug 2024 16:46:45 -0400 Subject: bunch of changes specific commit --- nvim/after/plugin/vimtex.lua | 10 ++-------- nvim/snips/tex/expressions.lua | 15 ++++++++++++++- nvim/snips/tex/symbols.lua | 36 ++++++++++++++++++++++++++++++++++-- rofi/config.rasi | 8 ++++---- sway/config | 4 ++-- waybar/style.css | 2 +- 6 files changed, 57 insertions(+), 18 deletions(-) diff --git a/nvim/after/plugin/vimtex.lua b/nvim/after/plugin/vimtex.lua index c2b2276..28500da 100644 --- a/nvim/after/plugin/vimtex.lua +++ b/nvim/after/plugin/vimtex.lua @@ -2,13 +2,7 @@ vim.g.vimtex_view_general_viewer = 'zathura' vim.g.vimtex_quickfix_open_on_warning = 0 vim.g.vimtex_imaps_enabled = 0 vim.cmd([[ -let g:vimtex_compiler_latexmk = { - \ 'options' : [ - \ '-verbose', - \ '-file-line-error', - \ '-synctex=1', - \ '-interaction=nonstopmode', - \ '-shell-escape', - \ ], +let g:vimtex_compiler_latexmk_engines = { + \ '_' : '-shell-escape', \} ]]) diff --git a/nvim/snips/tex/expressions.lua b/nvim/snips/tex/expressions.lua index 8c020db..875fbf4 100644 --- a/nvim/snips/tex/expressions.lua +++ b/nvim/snips/tex/expressions.lua @@ -58,6 +58,14 @@ return { { n.t("\\sum") }, { condition = h.in_mathzone } ), + n.s({trig="'bu", snippetType="autosnippet", priority=100}, + { n.t("\\bigcup") }, + { condition = h.in_mathzone } + ), + n.s({trig="'ba", snippetType="autosnippet", priority=100}, + { n.t("\\bigcap") }, + { condition = h.in_mathzone } + ), n.s({trig="od", snippetType="autosnippet", priority=100}, n.fmta("\\od{<>}{<>}", { n.i(1), n.i(2) }), @@ -101,7 +109,7 @@ return { { condition = h.in_mathzone } ), n.s({trig="pf", wordTrig=false, snippetType="autosnippet"}, - { n.t("\\pdiff") }, + { n.t("\\pdiff ") }, { condition = h.in_mathzone } ), n.s({trig = "tii", snippetType="autosnippet"}, @@ -119,6 +127,11 @@ return { { n.d(1, h.get_visual) }), { condition = h.in_text } ), + n.s({trig = "txt", snippetType="autosnippet"}, + n.fmta("\\texttt{<>}", + { n.d(1, h.get_visual) }), + { condition = h.in_text } + ), n.s({trig = "=", snippetType="autosnippet"}, { n.t("\\item ") }, { condition = h.in_itemize * h.line_begin } diff --git a/nvim/snips/tex/symbols.lua b/nvim/snips/tex/symbols.lua index b8a8559..04d7e78 100644 --- a/nvim/snips/tex/symbols.lua +++ b/nvim/snips/tex/symbols.lua @@ -133,6 +133,18 @@ return { { n.t("\\subseteq") }, { condition = h.in_mathzone } ), + n.s({trig="cq", snippetType="autosnippet"}, + { n.t("\\subset") }, + { condition = h.in_mathzone } + ), + n.s({trig="qq", snippetType="autosnippet"}, + { n.t("\\supset") }, + { condition = h.in_mathzone } + ), + n.s({trig="qc", snippetType="autosnippet"}, + { n.t("\\supset") }, + { condition = h.in_mathzone } + ), n.s({trig="Nn", snippetType="autosnippet"}, { n.t("\\cap") }, { condition = h.in_mathzone } @@ -202,16 +214,32 @@ return { { condition = h.in_mathzone } ), - n.s({trig="mcal", snippetType="autosnippet"}, + n.s({trig=[[([a-zA-Z])(:#|#:)]], wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + n.fmta("\\mathcal{<>}", + { n.f(function(_, parent) return string.upper(parent.captures[1]) end) }), + { condition = h.in_mathzone } + ), + n.s({trig="(:#|#:)", wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=100}, n.fmta("\\mathcal{<>}", { n.i(1) }), { condition = h.in_mathzone } ), - n.s({trig="mbb", snippetType="autosnippet"}, + + n.s({trig=[[([a-zA-Z])(@#|#@)]], wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + n.fmta("\\mathbb{<>}", + { n.f(function(_, parent) return string.upper(parent.captures[1]) end) }), + { condition = h.in_mathzone } + ), + n.s({trig="1(@#|#@)", wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + { n.t("\\1") }, + { condition = h.in_mathzone } + ), + n.s({trig="(@#|#@)", wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=100}, n.fmta("\\mathbb{<>}", { n.i(1) }), { condition = h.in_mathzone } ), + n.s({trig="'hb", snippetType="autosnippet"}, { n.t("\\hbar") }, { condition = h.in_mathzone } @@ -368,6 +396,10 @@ return { { n.t("\\oplus") }, { condition = h.in_mathzone } ), + n.s({trig="upp", snippetType="autosnippet"}, + { n.t("\\uplus") }, + { condition = h.in_mathzone } + ), n.s({trig="pm", snippetType="autosnippet"}, { n.t("\\pm") }, { condition = h.in_mathzone } diff --git a/rofi/config.rasi b/rofi/config.rasi index a705974..f8db5d4 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -7,10 +7,10 @@ configuration{ location: 0; disable-history: false; hide-scrollbar: true; - display-drun: "  Apps "; - display-run: "  Run "; - display-window: " 󰕰 Window"; - display-Network: " 󰤨 Network"; + display-drun: "  Apps "; + display-run: "  Run "; + display-window: " 󰕰 Window "; + display-Network: " 󰤨 Network "; sidebar-mode: false; } diff --git a/sway/config b/sway/config index 8172bf7..493407f 100644 --- a/sway/config +++ b/sway/config @@ -6,7 +6,7 @@ include catppuccin-macchiato exec --no-startup-id dex -ae sway -font pango:Font Awesome 10 +font pango:Fira Sans 10 ### Variables set $mod Mod4 @@ -179,7 +179,7 @@ bindsym $mod+b exec firefox bindsym $mod+x exec xournalpp # bindsym $mod+c exec "wezterm start --cwd ~/nextcloud/notebook/tex xch nvim" bindsym $mod+c exec "lectern open" -bindsym $mod+d exec "wezterm start --cwd ~/nextcloud/notebook/md xch nvim" +bindsym $mod+d exec "wezterm start --cwd ~/nextcloud/escritoire xch nvim" bindsym $mod+Shift+t exec "wezterm start --class 'float'" bindsym $mod+Shift+c exec "wezterm start --class 'numbat' numbat" bindsym $mod+Shift+g exec "feh -Z -F -B black /home/josh/Pictures/game.png" diff --git a/waybar/style.css b/waybar/style.css index d229b86..6e9bcd5 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -2,7 +2,7 @@ * { /* `otf-font-awesome` is required to be installed for icons */ - font-family: FiraCode Nerd Font, FontAwesome, Roboto, Helvetica, Arial, sans-serif; + font-family: FiraCode Nerd Font; font-size: 13px; } -- cgit v1.3