diff --git a/init.vim b/init.vim index bafcfae..3d0c077 100644 --- a/init.vim +++ b/init.vim @@ -151,12 +151,17 @@ " - status: 'installed', 'updated', or 'unchanged' " - force: set on PlugInstall! or PlugUpdate! if a:info.status == 'installed' || a:info.force - !cd app && yarn install + " Reset changes + !cd app && git reset --hard + !cd app && git pull + " Do the usual installation procedure + !cd app && npx --yes yarn install " Enable showing file:// urls - !cd app && sed -i -e "s/vbscript|javascript|file|data/|vbscript|javascript|data/" $(rg --files-with-matches "\|file\|") + " !cd app && sed -i -e s/vbscript|javascript|file|data/|vbscript|javascript|data/ $(rg --files-with-matches \|file\|) endif endfunction - Plug 'iamcco/markdown-preview.nvim', { 'for': ['markdown'], 'do': function('InstallMarkdownIt') } + " Plug 'iamcco/markdown-preview.nvim', { 'for': ['markdown'], 'do': function('InstallMarkdownIt') } + Plug 'Knyffen/markdown-preview.nvim', { 'for': ['markdown'], 'do': function('InstallMarkdownIt') } " Better table handling (for markdown) Plug 'dhruvasagar/vim-table-mode' @@ -923,7 +928,7 @@ augroup END " markdown-preview {{ au FileType markdown nnoremap ll :MarkdownPreview function OpenMarkdownPreview (url) - execute "silent ! firefox --new-window " . a:url + execute "silent ! firefox --new-window " . a:url . " & " endfunction " See https://github.com/iamcco/markdown-preview.nvim#markdownpreview-config let g:mkdp_auto_start = 0 " default 0 @@ -953,7 +958,7 @@ augroup END \ }, \ 'uml': {}, \ 'maid': {}, - \ 'disable_sync_scroll': 0, + \ 'disable_sync_scroll': 1, \ 'sync_scroll_type': 'middle', \ 'hide_yaml_meta': 1, \ 'sequence_diagrams': {}, @@ -1035,6 +1040,12 @@ augroup END augroup END " }} +" Julia {{ + augroup julia + au FileType julia nnoremap ll :w :!julia %:p + augroup END +" }} + " Add 80 character line limit {{ augroup textwrapping au! diff --git a/install_configfiles.sh b/install_configfiles.sh old mode 100644 new mode 100755