Custom fixes of markdown-preview
Execute Julia file from vim
This commit is contained in:
parent
bcbadda8d0
commit
ddaae365d7
21
init.vim
21
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 <buffer> <Leader>ll :MarkdownPreview<CR>
|
||||
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 <buffer> <Leader>ll :w <CR> :!julia %:p<CR>
|
||||
augroup END
|
||||
" }}
|
||||
|
||||
" Add 80 character line limit {{
|
||||
augroup textwrapping
|
||||
au!
|
||||
|
0
install_configfiles.sh
Normal file → Executable file
0
install_configfiles.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user