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'
|
" - status: 'installed', 'updated', or 'unchanged'
|
||||||
" - force: set on PlugInstall! or PlugUpdate!
|
" - force: set on PlugInstall! or PlugUpdate!
|
||||||
if a:info.status == 'installed' || a:info.force
|
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
|
" 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
|
endif
|
||||||
endfunction
|
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)
|
" Better table handling (for markdown)
|
||||||
Plug 'dhruvasagar/vim-table-mode'
|
Plug 'dhruvasagar/vim-table-mode'
|
||||||
@ -923,7 +928,7 @@ augroup END
|
|||||||
" markdown-preview {{
|
" markdown-preview {{
|
||||||
au FileType markdown nnoremap <buffer> <Leader>ll :MarkdownPreview<CR>
|
au FileType markdown nnoremap <buffer> <Leader>ll :MarkdownPreview<CR>
|
||||||
function OpenMarkdownPreview (url)
|
function OpenMarkdownPreview (url)
|
||||||
execute "silent ! firefox --new-window " . a:url
|
execute "silent ! firefox --new-window " . a:url . " & "
|
||||||
endfunction
|
endfunction
|
||||||
" See https://github.com/iamcco/markdown-preview.nvim#markdownpreview-config
|
" See https://github.com/iamcco/markdown-preview.nvim#markdownpreview-config
|
||||||
let g:mkdp_auto_start = 0 " default 0
|
let g:mkdp_auto_start = 0 " default 0
|
||||||
@ -953,7 +958,7 @@ augroup END
|
|||||||
\ },
|
\ },
|
||||||
\ 'uml': {},
|
\ 'uml': {},
|
||||||
\ 'maid': {},
|
\ 'maid': {},
|
||||||
\ 'disable_sync_scroll': 0,
|
\ 'disable_sync_scroll': 1,
|
||||||
\ 'sync_scroll_type': 'middle',
|
\ 'sync_scroll_type': 'middle',
|
||||||
\ 'hide_yaml_meta': 1,
|
\ 'hide_yaml_meta': 1,
|
||||||
\ 'sequence_diagrams': {},
|
\ 'sequence_diagrams': {},
|
||||||
@ -1035,6 +1040,12 @@ augroup END
|
|||||||
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 {{
|
" Add 80 character line limit {{
|
||||||
augroup textwrapping
|
augroup textwrapping
|
||||||
au!
|
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