mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-18 16:48:58 +02:00
nvim config
This commit is contained in:
parent
56b9114bf2
commit
2234b188fb
23 changed files with 1810 additions and 920 deletions
34
lua/colinzhao/lazy/autopairs.lua
Normal file
34
lua/colinzhao/lazy/autopairs.lua
Normal file
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
event = 'InsertEnter',
|
||||
config = function()
|
||||
local npairs = require 'nvim-autopairs'
|
||||
|
||||
npairs.setup {
|
||||
fast_wrap = {},
|
||||
}
|
||||
|
||||
-- change default fast_wrap
|
||||
npairs.setup {
|
||||
fast_wrap = {
|
||||
map = '<M-e>',
|
||||
chars = { '{', '[', '(', '"', "'", '`' },
|
||||
pattern = [=[[%'%"%>%]%)%}%,]]=],
|
||||
end_key = '$',
|
||||
before_key = 'h',
|
||||
after_key = 'l',
|
||||
cursor_pos_before = true,
|
||||
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
||||
manual_position = true,
|
||||
highlight = 'Search',
|
||||
highlight_grey = 'Comment',
|
||||
},
|
||||
}
|
||||
end,
|
||||
opts = {
|
||||
--ignored_next_char = '[^;:.,=}%])>` %n%t]',
|
||||
--enable_check_bracket_line = false,
|
||||
},
|
||||
-- use opts = {} for passing setup options
|
||||
-- this is equalent to setup({}) function
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue