diff --git a/src/.config/nvim/coding.vim b/src/.config/nvim/coding.vim index 3d72f7b..44102b0 100644 --- a/src/.config/nvim/coding.vim +++ b/src/.config/nvim/coding.vim @@ -23,6 +23,7 @@ source $XDG_CONFIG_HOME/nvim/vimspector.vim " bracket closing Plug 'jiangmiao/auto-pairs' let g:AutoPairsShortcutToggle = "@@" +let g:AutoPairsFlyMode = 1 " improved error list Plug 'folke/trouble.nvim' diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index 421824f..2463d7d 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -90,11 +90,11 @@ filetype plugin indent on source $XDG_CONFIG_HOME/nvim/ultisnips.vim if $SYSTEM_PROFILE == "DEFAULT" - " notes and documents stuff - source $XDG_CONFIG_HOME/nvim/typst.vim - " plugins for IDE-like nvim source $XDG_CONFIG_HOME/nvim/coding.vim + + " notes and documents stuff + source $XDG_CONFIG_HOME/nvim/typst.vim endif " URL motions diff --git a/src/.config/nvim/typst.vim b/src/.config/nvim/typst.vim index 4232848..d7c783d 100644 --- a/src/.config/nvim/typst.vim +++ b/src/.config/nvim/typst.vim @@ -28,3 +28,5 @@ function TypstWatch() exec "norm \h" endfunc nnoremap fc :call TypstWatch() + +au Filetype FILETYPE let b:AutoPairs = {"(": ")"} diff --git a/src/.config/nvim/ultisnips/typst.snippets b/src/.config/nvim/ultisnips/typst.snippets index ca4d213..1b140b0 100644 --- a/src/.config/nvim/ultisnips/typst.snippets +++ b/src/.config/nvim/ultisnips/typst.snippets @@ -53,12 +53,6 @@ endsnippet snippet ss "superscript" i ^$1 endsnippet -snippet im "inline math" w -\$${1:${VISUAL}}\$ -endsnippet -snippet mm "block math" w -\$ ${1:${VISUAL}} \$ -endsnippet snippet link "link" w #link("${1}")[${2}]