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 b6be8bf..e56fafd 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ