1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Use delimitMate instead of auto-pairs

This commit is contained in:
jdhao 2021-08-12 00:51:44 +08:00
parent 082a8ab6b5
commit 37e9487076
4 changed files with 2 additions and 15 deletions

View File

@ -31,7 +31,7 @@ backward compatibility is guaranteed.**
+ Fast buffer jump via [vim-sneak](https://github.com/justinmk/vim-sneak). + Fast buffer jump via [vim-sneak](https://github.com/justinmk/vim-sneak).
+ Ultra fast snippet insertion via [Ultisnips](https://github.com/SirVer/ultisnips). + Ultra fast snippet insertion via [Ultisnips](https://github.com/SirVer/ultisnips).
+ Git integration via [vim-fugitive](https://github.com/tpope/vim-fugitive). + 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). + 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). + Asynchronous code execution via [asyncrun.vim](https://github.com/skywind3000/asyncrun.vim).
+ Code highlighting via [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter). + Code highlighting via [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter).

View File

@ -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 set textwidth=79

View File

@ -17,11 +17,3 @@ set tabstop=2 " number of visual spaces per TAB
set softtabstop=2 " number of spaces in tab when editing set softtabstop=2 " number of spaces in tab when editing
set shiftwidth=2 " number of spaces to use for autoindent set shiftwidth=2 " number of spaces to use for autoindent
set expandtab " expand tab to spaces so that tabs are spaces 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

View File

@ -130,7 +130,7 @@ require('packer').startup(
use {'honza/vim-snippets', event = {'InsertEnter'}} use {'honza/vim-snippets', event = {'InsertEnter'}}
-- Automatic insertion and deletion of a pair of characters -- Automatic insertion and deletion of a pair of characters
use 'jiangmiao/auto-pairs' use 'Raimondi/delimitMate'
-- Comment plugin -- Comment plugin
use 'tpope/vim-commentary' use 'tpope/vim-commentary'