nvim: put typst stuff in an ftplugin file
This commit is contained in:
parent
232a1ba12f
commit
0aacb9e484
@ -1,6 +1,3 @@
|
|||||||
" typst filetype support
|
|
||||||
Plug 'kaarmu/typst.vim'
|
|
||||||
|
|
||||||
" edit figure in Inkscape
|
" edit figure in Inkscape
|
||||||
function EditFig()
|
function EditFig()
|
||||||
" expands filename under cursor
|
" expands filename under cursor
|
||||||
@ -31,4 +28,4 @@ nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
|||||||
|
|
||||||
nnoremap <silent><leader>fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &"<cr>
|
nnoremap <silent><leader>fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &"<cr>
|
||||||
|
|
||||||
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}
|
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}
|
@ -98,7 +98,8 @@ if $SYSTEM_PROFILE == "DEFAULT"
|
|||||||
source $XDG_CONFIG_HOME/nvim/coding.vim
|
source $XDG_CONFIG_HOME/nvim/coding.vim
|
||||||
|
|
||||||
" notes and documents stuff
|
" notes and documents stuff
|
||||||
source $XDG_CONFIG_HOME/nvim/typst.vim
|
" see ftplugin/typst.vim for binds and stuff
|
||||||
|
Plug 'kaarmu/typst.vim'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" color theme
|
" color theme
|
||||||
|
Loading…
Reference in New Issue
Block a user