From d06d3b0cc33c52566e3d027856dc163867d1fe5c Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 3 May 2022 09:22:23 +0100 Subject: [PATCH] update --- UltiSnips/javascript.snippets | 25 +++++++++++++++++++++++++ init.plugins.vim | 10 ++++++++++ spell/en.utf-8.add | 4 ++++ spell/en.utf-8.add.spl | Bin 2669 -> 2738 bytes 4 files changed, 39 insertions(+) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index a4afe51..ef92bb4 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -40,6 +40,12 @@ snippet .fe "...forEach( ... );" i }); endsnippet +snippet wae "window.addEventListener( ... );" +window.addEventListener('$1', ($2) => { + $0 +}); +endsnippet + snippet .ael "...addEventListener( ... );" i .addEventListener('$1', ($2) => { $0 @@ -185,3 +191,22 @@ export default `!p snip.rv = snip.basename` endsnippet +snippet ue "useEffect(() => {" +useEffect(() => { + $0 +}, ${1:[]}); +endsnippet + +snippet ule "useLayoutEffect(() => {" +useLayoutEffect(() => { + $0 +}, ${1:[]}); +endsnippet + +snippet imp "import ... from ..." +import $1 from "${2:.}/$1"; +endsnippet + +snippet impcss "import ... from ..." +import \{ css \} from "@emotion/react"; +endsnippet diff --git a/init.plugins.vim b/init.plugins.vim index 1643fe5..8d9fbb7 100644 --- a/init.plugins.vim +++ b/init.plugins.vim @@ -1,3 +1,4 @@ +" https://github.com/junegunn/vim-plug if empty(glob('~/.config/nvim/autoload/plug.vim'))" silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim @@ -76,6 +77,15 @@ Plug '~/projects/nvim-paper-tonic' Plug 'lukas-reineke/indent-blankline.nvim' "}}} +" #iamcco/markdown-preview.nvim {{{ + " https://github.com/iamcco/markdown-preview.nvim + Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} + + let g:mkdp_browser = '/usr/local/bin/chromium-app' + let g:mkdp_echo_preview_url = 1 + + "}}} + " keeping " #vim-hexokinase {{{ " https://github.com/chrisbra/Colorizer diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index c1428b8..c27a722 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -204,3 +204,7 @@ LXD campervans VW gltf +SeamlessHR +Linkedin +Tepsi +chipotle diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index b6be8bff6272bc06dc4955482ff59f753601627a..e56fafd045bdaa00a14149171523499cb62ccdf6 100644 GIT binary patch delta 741 zcmYLGJ&0355Z>AMcd%1?0Y*i-}lWov)}7456oY`u%SwkrYnCK zbC+Mt*TLc<(G6%WLJ0*_kODB)7Cb2+gl+IC{2l09a15q;1kYhrpWyeQsbBMxa7cgS zU%atE5Iod-){S}?dA>-1@n>n#A99JeRIl0R7x*>`J*_}MMCfs%$M#tVnAMj0qkVjN z(8A_E7JdAa1)pa*qAS>?aH{K0x7O%Ef{}Gc?>I~6CPOy}dwDrPn8Y+sQ!YpZ5rZ73 z2}~g*{$>U}P=?K>G$rYv>L=%D^GD+Pf-J{rfywt3mkRqPxPU$)Ne|ZblDmHCp2Q46 zO0FuD!-7LFN~xMJ;-r*Se}E*jl8&B7fY?^O7wEaTvLXKrL{2|7<1r8=>w25Bu4xTw8AmACjW;AoVH=BV? zw@7=mWsA6wged<_NAH4_+e&x6m5nE<8xbzaOGW>o8HP79E6NlX61$anW(y3>dRVZ7 zagL`)zTPEBAxZnR{_HKnK>zZtK}TPlYqcII&g~3Yh9BgJveq&V%z5h<+&Al;(E82o kZon9H^{ctBhY`X~T@lFqzse5TZd}!mYZ89y{rhhI1vSE|IsgCw delta 603 zcmX9*%WD%s7@u#lkECEPO~D5Vh=x{a5kgUK5?|0mp&+QJ2X{Am1io7y8nc5#QVi2 zNmAUQ&XNpM3g`uS#7)IRx#2~0Jc`oYvDBy(-?Q#IM(4QTx7KY}8~A?6->end;fCFY@~Zu$(Hc;QQBCvIZr_=W z9X}W(*-KJn7*a)26$k~yPC_ZdnL&VFJdbHWdBqlGfzU=rl>E!S*!dYco-%<(QHsOQ zh159}Km@c4q|u{W+;#3ZCmJUPlF7V)9Lm4^+PSdM%WDyuNm}rU)4AL$WTq<%>J1k)dW4sni684doO0RmBnR&LVI`D;{P5xg0QT^8I+kD#4 Kbjptwp8f~4Dvgo=