Feat: set autopairs

This commit is contained in:
Bertrand Benjamin 2022-05-02 07:28:22 +02:00
parent 62ba0e08fb
commit 0117c53cb7
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,9 @@
local autopairs_status_ok, autopairs = pcall(require, "'nvim-autopairs")
if not autopairs_status_ok then
return
end
autopairs.setup{
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", ""),
}

View File

@ -102,7 +102,11 @@ return packer.startup(function(use)
-- Highlight on Yank
use 'machakann/vim-highlightedyank'
-- Autoclose parenthesis
use 'jiangmiao/auto-pairs'
-- use 'jiangmiao/auto-pairs'
use {
'windwp/nvim-autopairs',
config = [[ require('config.autopairs') ]]
}
use 'kyazdani42/nvim-web-devicons'
use {