Skip to content

Commit ce1e13e

Browse files
committed
use plugin nvim-autopairs for autopair
delimitMate is not updated for a long time.
1 parent 2af616b commit ce1e13e

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ and how to set up on different platforms (Linux, macOS, and Windows).
6464
+ Better escaping from insert mode via [better-escape.vim](https://github.com/nvim-zh/better-escape.vim).
6565
+ Ultra-fast project-wide fuzzy searching via [LeaderF](https://github.com/Yggdroot/LeaderF).
6666
+ Faster code commenting via [vim-commentary](https://github.com/tpope/vim-commentary).
67-
+ Faster matching pair insertion and jump via [delimitMate](https://github.com/Raimondi/delimitMate).
67+
+ Faster matching pair insertion and jump via [nvim-autopairs](https://github.com/windwp/nvim-autopairs).
6868
+ Smarter and faster matching pair management (add, replace or delete) via [vim-sandwich](https://github.com/machakann/vim-sandwich).
6969
+ Fast buffer jump via [hop.nvim](https://github.com/phaazon/hop.nvim).
7070
+ Powerful snippet insertion via [Ultisnips](https://github.com/SirVer/ultisnips).

after/ftplugin/cpp.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,3 @@ function s:create_term_buf(_type, size) abort
3434
endif
3535
execute 'resize ' . a:size
3636
endfunction
37-
38-
" For delimitMate
39-
let b:delimitMate_matchpairs = "(:),[:],{:}"

after/ftplugin/lua.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ set formatoptions-=r
44

55
nnoremap <buffer><silent> <F9> :luafile %<CR>
66
7-
" For delimitMate
8-
let b:delimitMate_matchpairs = "(:),[:],{:}"
9-
107
" Use nvim-treesitter for folding
118
set foldmethod=expr
129
set foldexpr=nvim_treesitter#foldexpr()

after/ftplugin/python.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ set softtabstop=4 " number of spaces in tab when editing
1313
set shiftwidth=4 " number of spaces to use for autoindent
1414
set expandtab " expand tab to spaces so that tabs are spaces
1515

16-
" For delimitMate
17-
let b:delimitMate_matchpairs = "(:),[:],{:}"
18-
1916
" Use nvim-treesitter for folding
2017
set foldmethod=expr
2118
set foldexpr=nvim_treesitter#foldexpr()

lua/plugin_specs.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ local plugin_specs = {
221221
}, event = "InsertEnter" },
222222

223223
-- Automatic insertion and deletion of a pair of characters
224-
{ "Raimondi/delimitMate", event = "InsertEnter" },
224+
{
225+
'windwp/nvim-autopairs',
226+
event = "InsertEnter",
227+
config = true
228+
},
225229

226230
-- Comment plugin
227231
{ "tpope/vim-commentary", event = "VeryLazy" },

0 commit comments

Comments
 (0)