mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
Some changes everywhere
This commit is contained in:
parent
12b80a6351
commit
8b92a98d2f
7 changed files with 31 additions and 7 deletions
|
@ -27,7 +27,11 @@ cursor:
|
||||||
style: "Block"
|
style: "Block"
|
||||||
unfocused_hollow: true
|
unfocused_hollow: true
|
||||||
font:
|
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 }
|
offset: { "x": 0, "y": 0 }
|
||||||
size: 12
|
size: 12
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ in
|
||||||
"Xft.antialias" = "1";
|
"Xft.antialias" = "1";
|
||||||
"Xft.hinting" = "true";
|
"Xft.hinting" = "true";
|
||||||
"Xft.hintstyle" = "hintslight";
|
"Xft.hintstyle" = "hintslight";
|
||||||
"Xft.dpi" = "96";
|
"Xft.dpi" = "110";
|
||||||
"Xft.rgba" = "rgb";
|
"Xft.rgba" = "rgb";
|
||||||
"Xft.lcdfilter" = "lcddefault";
|
"Xft.lcdfilter" = "lcddefault";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(module dots.keybinds
|
(module dots.keybinds
|
||||||
{autoload {a aniseed.core
|
{autoload {a aniseed.core
|
||||||
|
str aniseed.string
|
||||||
nvim aniseed.nvim
|
nvim aniseed.nvim
|
||||||
utils dots.utils
|
utils dots.utils
|
||||||
wk which-key
|
wk which-key
|
||||||
|
@ -29,6 +30,10 @@
|
||||||
;(utils.keymap [:n] :j "gj")
|
;(utils.keymap [:n] :j "gj")
|
||||||
;(utils.keymap [:n] :k "gk")
|
;(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] [(.. "<cmd>" s "<cr>") desc])
|
(fn cmd [s desc] [(.. "<cmd>" s "<cr>") desc])
|
||||||
(fn sel-cmd [s desc] [(.. "<cmd>'<,'>" s "<cr>") desc])
|
(fn sel-cmd [s desc] [(.. "<cmd>'<,'>" s "<cr>") desc])
|
||||||
|
@ -110,9 +115,9 @@
|
||||||
"b" (cmd "Buffers" "select open buffer")
|
"b" (cmd "Buffers" "select open buffer")
|
||||||
"c" (cmd "bdelete!" "close open buffer")
|
"c" (cmd "bdelete!" "close open buffer")
|
||||||
"w" (cmd "bwipeout!" "wipeout open buffer")}}
|
"w" (cmd "bwipeout!" "wipeout open buffer")}}
|
||||||
|
|
||||||
|
|
||||||
|
{:prefix"<leader>"})
|
||||||
{:prefix "<leader>"})
|
|
||||||
|
|
||||||
(wk.register
|
(wk.register
|
||||||
{"<tab>" "which_key_ignore"
|
{"<tab>" "which_key_ignore"
|
||||||
|
@ -126,7 +131,8 @@
|
||||||
{:mode "i"})
|
{:mode "i"})
|
||||||
|
|
||||||
(wk.register
|
(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 "<leader>"
|
{:prefix "<leader>"
|
||||||
:mode "v"})
|
:mode "v"})
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
(.. "\\" x "{}")))
|
(.. "\\" x "{}")))
|
||||||
|
|
||||||
(def latex-command-settings
|
(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"])})
|
:ignore (cmds ["urlfootnote" "caption" "todo"])})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,3 +38,5 @@
|
||||||
:sections 0
|
:sections 0
|
||||||
:styles 0})
|
:styles 0})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -151,3 +151,15 @@
|
||||||
(set did-exec-deferred true)
|
(set did-exec-deferred true)
|
||||||
(each [_ f (ipairs deferred-funs)]
|
(each [_ f (ipairs deferred-funs)]
|
||||||
(f)))
|
(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)))
|
||||||
|
|
|
@ -12,4 +12,4 @@ set statusbar-fg "#ebdbb2"
|
||||||
|
|
||||||
set synctex true
|
set synctex true
|
||||||
set synctex-editor-command "nvim --headless -c \"VimtexInverseSearch %{line} '%{input}'\""
|
set synctex-editor-command "nvim --headless -c \"VimtexInverseSearch %{line} '%{input}'\""
|
||||||
set highlight-transparency 0
|
set highlight-transparency 0.1
|
||||||
|
|
Loading…
Reference in a new issue