]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: replace delimitmate with mini.pairs
authorSamir Benmendil <me@rmz.io>
Thu, 13 Apr 2023 15:18:40 +0000 (16:18 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:19 +0000 (17:36 +0000)
nvim/lua/plugins/coding.lua
vim/vimrc

index a765a79ae258c206207843c4ab7fa35242f035d7..6a6ded82b3ce2691fcbcbe21ce48da7c6aa092db 100644 (file)
@@ -51,4 +51,9 @@ return {
       })
     end,
   },
+
+  -- auto pairs
+  {
+    "echasnovski/mini.pairs",
+  },
 }
index 665713258fa0de386dafbc6529e6d499c6bf8ff4..db6f710be1c263ad726dda08d6c3463ff718a471 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -48,7 +48,12 @@ Plug 'klen/python-mode'
 Plug 'kshenoy/vim-signature'
 Plug 'majutsushi/tagbar'
 Plug 'octol/vim-cpp-enhanced-highlight'
-Plug 'raimondi/delimitmate'
+if !has('nvim')
+  Plug 'raimondi/delimitmate' " {{{2
+  let delimitMate_expand_cr = 2
+  let g:delimitMate_expand_space = 1
+  "}}}
+end
 Plug 'sgeb/vim-diff-fold'
 Plug 'skywind3000/asyncrun.vim' " {{{2
 command! -bang -nargs=* -complete=file Make AsyncRun -save=2 -program=make @ <args>
@@ -676,9 +681,6 @@ nnoremap <silent> <C-W>cl :CloseRightWindow<CR>
 nnoremap <silent> <C-W>cj :CloseBelowWindow<CR>
 nnoremap <silent> <C-W>ck :CloseAboveWindow<CR>
 
-" delimitmate {{{2
-let delimitMate_expand_cr = 2
-let g:delimitMate_expand_space = 1
 
 " fswitch {{{2
 nnoremap <silent> <Leader>ff :FSHere<CR>