diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index f96d411..2007d97 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -27,7 +27,11 @@ cursor: style: "Block" unfocused_hollow: true font: - normal: { "family": "xos4 Terminus" } + normal: { "family": "Fira Code" } + #normal: { "family": "Victor Mono" } + #normal: { "family": "Monoid" } + #normal: { "family": "Mono Lisa" } + #normal: { "family": "xos4 Terminus" } offset: { "x": 0, "y": 0 } size: 12 diff --git a/nixpkgs/.config/nixpkgs/modules/desktop.nix b/nixpkgs/.config/nixpkgs/modules/desktop.nix index b400f78..46e40a1 100644 --- a/nixpkgs/.config/nixpkgs/modules/desktop.nix +++ b/nixpkgs/.config/nixpkgs/modules/desktop.nix @@ -106,7 +106,7 @@ in "Xft.antialias" = "1"; "Xft.hinting" = "true"; "Xft.hintstyle" = "hintslight"; - "Xft.dpi" = "96"; + "Xft.dpi" = "110"; "Xft.rgba" = "rgb"; "Xft.lcdfilter" = "lcddefault"; diff --git a/nvim/.config/nvim/fnl/dots/keybinds.fnl b/nvim/.config/nvim/fnl/dots/keybinds.fnl index cdfba40..9ccbad6 100644 --- a/nvim/.config/nvim/fnl/dots/keybinds.fnl +++ b/nvim/.config/nvim/fnl/dots/keybinds.fnl @@ -1,5 +1,6 @@ (module dots.keybinds {autoload {a aniseed.core + str aniseed.string nvim aniseed.nvim utils dots.utils wk which-key @@ -29,6 +30,10 @@ ;(utils.keymap [:n] :j "gj") ;(utils.keymap [:n] :k "gk") +(defn open-selection-zotero [] + (let [(_ _ sel) (utils.get-selection)] + (vim.cmd (.. "silent !xdg-open zotero://select/items/@" (str.join sel))))) + (fn cmd [s desc] [(.. "" s "") desc]) (fn sel-cmd [s desc] [(.. "'<,'>" s "") desc]) @@ -110,9 +115,9 @@ "b" (cmd "Buffers" "select open buffer") "c" (cmd "bdelete!" "close open buffer") "w" (cmd "bwipeout!" "wipeout open buffer")}} + - - {:prefix ""}) + {:prefix""}) (wk.register {"" "which_key_ignore" @@ -126,7 +131,8 @@ {:mode "i"}) (wk.register - {"s" (sel-cmd "VSSplit" "keep selection visible in split")} + {"s" (sel-cmd "VSSplit" "keep selection visible in split") + "z" [open-selection-zotero "open in zotero"]} {:prefix "" :mode "v"}) diff --git a/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl b/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl index 644b555..a9f4614 100644 --- a/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/ltex-ls.fnl @@ -13,7 +13,7 @@ (.. "\\" x "{}"))) (def latex-command-settings - {:dummy (cmds ["texttt" "scripture""lstref" "figref" "tblref" "secref" "personaltextcite" "personalparencite" "game" "acsu" "enquote" "name" "item"]) + {:dummy (cmds ["texttt" "scripture" "lstref" "figref" "tblref" "secref" "personaltextcite" "personalparencite" "textcite" "parencite" "parencite[]" "game" "acsu" "enquote" "name" "item"]) :ignore (cmds ["urlfootnote" "caption" "todo"])}) diff --git a/nvim/.config/nvim/fnl/dots/plugins/vimtex.fnl b/nvim/.config/nvim/fnl/dots/plugins/vimtex.fnl index a8dd4e7..0c122da 100644 --- a/nvim/.config/nvim/fnl/dots/plugins/vimtex.fnl +++ b/nvim/.config/nvim/fnl/dots/plugins/vimtex.fnl @@ -38,3 +38,5 @@ :sections 0 :styles 0}) + + diff --git a/nvim/.config/nvim/fnl/dots/utils.fnl b/nvim/.config/nvim/fnl/dots/utils.fnl index 27699fb..8686faf 100644 --- a/nvim/.config/nvim/fnl/dots/utils.fnl +++ b/nvim/.config/nvim/fnl/dots/utils.fnl @@ -151,3 +151,15 @@ (set did-exec-deferred true) (each [_ f (ipairs deferred-funs)] (f))) + + +(defn get-selection [] + (let [[_ s-start-line s-start-col] (vim.fn.getpos "'<") + [_ s-end-line s-end-col] (vim.fn.getpos "'>") + n-lines (+ 1 (math.abs (- s-end-line s-start-line))) + lines (vim.api.nvim_buf_get_lines 0 (- s-start-line 1) s-end-line false)] + (tset lines 1 (string.sub (. lines 1) s-start-col -1)) + (if (= 1 n-lines) + (tset lines n-lines (string.sub (. lines n-lines) 1 (+ 1 (- s-end-col s-start-col)))) + (tset lines n-lines (string.sub (. lines n-lines) 1 s-end-col))) + (values s-start-line s-end-line lines))) diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc index 52a4b0e..93e4f00 100644 --- a/zathura/.config/zathura/zathurarc +++ b/zathura/.config/zathura/zathurarc @@ -12,4 +12,4 @@ set statusbar-fg "#ebdbb2" set synctex true set synctex-editor-command "nvim --headless -c \"VimtexInverseSearch %{line} '%{input}'\"" -set highlight-transparency 0 +set highlight-transparency 0.1