From a7281c3e9ccbf718c6ab51dd4707c0e5c989953e Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sat, 8 May 2021 23:54:36 +0200 Subject: [PATCH] asdf --- files/.config/nvim/fnl/utils.fnl | 19 +++++++----------- ...p-dotfiles%files%.config%nvim%fnl%init.fnl | Bin 0 -> 5924 bytes ...-dotfiles%files%.config%nvim%fnl%utils.fnl | Bin 0 -> 36977 bytes 3 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 files/.config/nvim/~/.vim/undo-dir/%home%leon%desktop-dotfiles%files%.config%nvim%fnl%init.fnl create mode 100644 files/.config/nvim/~/.vim/undo-dir/%home%leon%desktop-dotfiles%files%.config%nvim%fnl%utils.fnl diff --git a/files/.config/nvim/fnl/utils.fnl b/files/.config/nvim/fnl/utils.fnl index e07e134..334aa51 100644 --- a/files/.config/nvim/fnl/utils.fnl +++ b/files/.config/nvim/fnl/utils.fnl @@ -4,9 +4,6 @@ nvim aniseed.nvim} require-macros [macros]}) -(def req - (setmetatable {} {:__index (fn [_ idx] (require idx))})) - (defn plugin-installed? [name] (~= nil (. packer_plugins name))) @@ -31,15 +28,13 @@ (defn keymap [modes from to ?opts] "Set a mapping in the given modes, and some optional parameters, defaulting to {:noremap true :silent true}. If :buffer is set, uses buf_set_keymap rather than set_keymap" - (local full-opts - (->> (or ?opts {}) - (a.merge {:noremap true :silent true}) - (without-keys [:buffer]))) - (if (and ?opts (?. ?opts :buffer)) - (a.println (fennel.view modes)) + (let [full-opts (->> (or ?opts {}) + (a.merge {:noremap true :silent true}) + (without-keys [:buffer]))] (each [_ mode (ipairs (single-to-list modes))] - (nvim.buf_set_keymap 0 mode from to full-opts) - (nvim.set_keymap mode from to full-opts)))) + (if (-?> ?opts (. :buffer)) + (nvim.buf_set_keymap 0 mode from to full-opts) + (nvim.set_keymap mode from to full-opts))))) (defn del-keymap [mode from ?buf-local] "Remove a keymap. Arguments: mode, mapping, bool if mapping should be buffer-local." @@ -62,7 +57,7 @@ (packer.startup (fn [use] (each-pair [name opts pkgs] - (-?> (. opts :mod) (safe-require-plugin-config)) + (-?> opts (. :mod) (safe-require-plugin-config)) (use (a.assoc opts 1 name))))))) diff --git a/files/.config/nvim/~/.vim/undo-dir/%home%leon%desktop-dotfiles%files%.config%nvim%fnl%init.fnl b/files/.config/nvim/~/.vim/undo-dir/%home%leon%desktop-dotfiles%files%.config%nvim%fnl%init.fnl new file mode 100644 index 0000000000000000000000000000000000000000..bbaee7a37870ec41c6b233ac3f6a9252fed2e306 GIT binary patch literal 5924 zcmd5=&5snv6(7qaiY+;ZNW>V3c{Cq8i*^Q~zV{NlSso0VondhL;k>fa^&FC?}KP399 zy)zC(lF+G@h)%UdcMKVIqNr`<=;~Yqav*{&I=#A#Vd%D6XF+*}X1kJxym3+vV^w%H z_PN)kW#sBrLSZb*0gXHjcNGNDXU^ z6DdNOllSP++Ji9+aLr@Ik2g>PO+ntJ5t$6{?j{0;XQ%jnL@iPfm zO<_kJXNq{67|Mc@cuUe!Ds(WSRmvi|xI|e_OAkj9>LHD$@ZDvNjz#uv{iWL(*9smp&^2qydal(>UhP2+F+3@+4MM zqq%1ntDuk~hqe=wy7nI7JR3k)I&1~=R45#*%8GFkYonbjT@eqVe^RE3yj_WyfZ<&2 zi%}fu?KspUy2!A@j^tVl3Z0EDpzQ!S*b8=g@~p?M$Shegp<)=g>T?#Y+(HIaUl@o1u=glA(Ru2KICgoE=XZYZgZ5g-5xFCc+TaQgA#lcDX{3Q z2N0mKfV9+H$h>6&{Y!oN2vT%{1fEQ&@WECT?;v-=66WyX-Ygl#1(>m`%aG-|wMed~ z5h;ZZ1;vfl24xh<{2Hxo+_zu7z%b)^eJF4Bjm4x2L7T_zK5f`8SZ0^#cUNo#4x-Q4~g_`);c^aRC!=1)k%CEG|r=s`gSo?=8Ans=%~2m7^N}s>27a(0aQLA>t{jl`GypES!nM4Fz-2p zc-aq984(T)>j1+ z?owP1dhwK$#p7_W>5AK-=XH^v$o_>gvU8L8Km(CBtLtRdO|W@qG-$tApIzFsgqK*< zN}^CEoqeR5G-XD`ipLziE}O{q6dP9igVk&bXLjzRvUv+I&ey~zK1yShHwcEGjGJwK zA?VhjRJSspszT=abICDsj(X<4{j8UiqC0EI_N1q=WpQE(wD)Td#o*c#c(}WL>O<`% ze`&cc-|I7)Pxfyu*x&0p1U{J|5IX{_8F#+6w$aJ1y^b)S9zctQc^z5}!H&)lgJysF z0|?pfnonXb;(uZzp8HDEP}z!&)>fo4Bj3Fj`6~07yl;5< z6CNf?`fzrBW!S_j?$V-*EQSW1A72nPn43Kx*1--mCS{&qzy}Fp!Dz3!`?h1Ha^6T6 zI6-oK9E!>vQ--6yycP9oas-a!@6+_IWS zB+&Y7F|9dShEn^slLiUgnaYUUVTq!|lHERln$ZcjB-7>L!C_uUrd!?rz0)AJ%!$lA z;kg&1`cS~PFdRRy9P8eI-$c9t(wEe@>p5nCZ?cbJ7Y`8U@mamktCPg_GTO+c!1iW} oSm01qwqS~LUhi>NkoL^;ka-qbuOGZt_#fK(%U@sq`X9gl5BI-U7XSbN literal 0 HcmV?d00001 diff --git a/files/.config/nvim/~/.vim/undo-dir/%home%leon%desktop-dotfiles%files%.config%nvim%fnl%utils.fnl b/files/.config/nvim/~/.vim/undo-dir/%home%leon%desktop-dotfiles%files%.config%nvim%fnl%utils.fnl new file mode 100644 index 0000000000000000000000000000000000000000..cc431b1c85449c6897670b2ccec5ad1ba02b2774 GIT binary patch literal 36977 zcmeI5-;-QL6~`A65I+X+@t_p=n-|}#((~y)-?=BVGn?6+3@+rJs=0md z={`MuPk;M-yZg@GJR#rgXW{Nb;! zG{9(ro)3!BN^H8%5mFL17>BxK!SpDkSc z*Cc7UsAL2lc<8AuUryaIHumo;t^OPBGwI($SKLx0skM$b=ckt&?U^q$zBFH7Ean%E zG>X}!h54erP|O~io10o#Y%fomq-yBFTBv4MtmffkvooQpoBLIkYP#NPp-~78x|N!0 zjrt>x76)gtWv#hbZ!RqtwdH2(=v-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