nvim: autopairs upgrades

This commit is contained in:
dogeystamp 2023-07-08 21:21:40 -04:00
parent 02ea6f66f6
commit 109c321c85
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
4 changed files with 6 additions and 9 deletions

View File

@ -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'

View File

@ -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

View File

@ -28,3 +28,5 @@ function TypstWatch()
exec "norm \<c-w>h"
endfunc
nnoremap <silent><leader>fc :call TypstWatch()<cr>
au Filetype FILETYPE let b:AutoPairs = {"(": ")"}

View File

@ -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}]