aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-12 00:51:44 +0800
committerjdhao <jdhao@hotmail.com>2021-08-12 00:51:44 +0800
commit37e9487076d3fec7c26850ed50fbe33caae71665 (patch)
tree397ccb779a228f29dd51d53dabf47fdf7e9f3220
parent082a8ab6b5098bbc831bbe4fe0727dff5053f431 (diff)
Use delimitMate instead of auto-pairs
-rw-r--r--README.md2
-rw-r--r--after/ftplugin/tex.vim5
-rw-r--r--after/ftplugin/vim.vim8
-rw-r--r--lua/plugins.lua2
4 files changed, 2 insertions, 15 deletions
diff --git a/README.md b/README.md
index c0e2f9b..3784182 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ backward compatibility is guaranteed.**
+ Fast buffer jump via [vim-sneak](https://github.com/justinmk/vim-sneak).
+ Ultra fast snippet insertion via [Ultisnips](https://github.com/SirVer/ultisnips).
+ Git integration via [vim-fugitive](https://github.com/tpope/vim-fugitive).
-+ Faster matching pair insertion and jump via [auto-pairs](https://github.com/jiangmiao/auto-pairs).
++ Faster matching pair insertion and jump via [delimitMate](https://github.com/Raimondi/delimitMate).
+ Beautiful status line via [vim-airline](https://github.com/vim-airline/vim-airline).
+ Asynchronous code execution via [asyncrun.vim](https://github.com/skywind3000/asyncrun.vim).
+ Code highlighting via [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter).
diff --git a/after/ftplugin/tex.vim b/after/ftplugin/tex.vim
index 87281a6..868f4e6 100644
--- a/after/ftplugin/tex.vim
+++ b/after/ftplugin/tex.vim
@@ -1,6 +1 @@
-" Only use the following character pairs for tex file
-if match(&runtimepath, 'auto-pairs') != -1
- let b:AutoPairs = AutoPairsDefine({'<' : '>'})
- let b:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>'}
-endif
set textwidth=79
diff --git a/after/ftplugin/vim.vim b/after/ftplugin/vim.vim
index 12f5c32..d0f33b9 100644
--- a/after/ftplugin/vim.vim
+++ b/after/ftplugin/vim.vim
@@ -17,11 +17,3 @@ set tabstop=2 " number of visual spaces per TAB
set softtabstop=2 " number of spaces in tab when editing
set shiftwidth=2 " number of spaces to use for autoindent
set expandtab " expand tab to spaces so that tabs are spaces
-
-" Only define following variable if Auto-pairs plugin is used
-if match(&runtimepath, 'auto-pairs') != -1
- let b:AutoPairs = AutoPairsDefine({'<' : '>'})
-
- " Do not use `"` for vim script since `"` is also used for comment
- let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '`':'`', '<':'>'}
-endif
diff --git a/lua/plugins.lua b/lua/plugins.lua
index a189bb6..c7b26fc 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -130,7 +130,7 @@ require('packer').startup(
use {'honza/vim-snippets', event = {'InsertEnter'}}
-- Automatic insertion and deletion of a pair of characters
- use 'jiangmiao/auto-pairs'
+ use 'Raimondi/delimitMate'
-- Comment plugin
use 'tpope/vim-commentary'