From 0aacb9e484a8809cb041657845c96787f99601b5 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 7 Aug 2023 17:41:55 -0400 Subject: [PATCH] nvim: put typst stuff in an ftplugin file --- src/.config/nvim/{ => ftplugin}/typst.vim | 5 +---- src/.config/nvim/init.vim | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) rename src/.config/nvim/{ => ftplugin}/typst.vim (83%) diff --git a/src/.config/nvim/typst.vim b/src/.config/nvim/ftplugin/typst.vim similarity index 83% rename from src/.config/nvim/typst.vim rename to src/.config/nvim/ftplugin/typst.vim index 829d7c8..6b81002 100644 --- a/src/.config/nvim/typst.vim +++ b/src/.config/nvim/ftplugin/typst.vim @@ -1,6 +1,3 @@ -" typst filetype support -Plug 'kaarmu/typst.vim' - " edit figure in Inkscape function EditFig() " expands filename under cursor @@ -31,4 +28,4 @@ nnoremap fc :call TypstWatch() nnoremap fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &" -au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"} +let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"} diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index a7cbcb6..bdd1f11 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -98,7 +98,8 @@ if $SYSTEM_PROFILE == "DEFAULT" source $XDG_CONFIG_HOME/nvim/coding.vim " notes and documents stuff - source $XDG_CONFIG_HOME/nvim/typst.vim + " see ftplugin/typst.vim for binds and stuff + Plug 'kaarmu/typst.vim' endif " color theme