Feat: set autopairs
This commit is contained in:
parent
62ba0e08fb
commit
0117c53cb7
9
nvim/.config/nvim/lua/config/autopairs.lua
Normal file
9
nvim/.config/nvim/lua/config/autopairs.lua
Normal 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+", ""),
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user