mirror of
https://github.com/cap153/nvim.git
synced 2025-12-28 12:54:56 +08:00
first commit
This commit is contained in:
commit
6955e90e07
61 changed files with 3641 additions and 0 deletions
19
lua/lazy/plugins/pairs.lua
Normal file
19
lua/lazy/plugins/pairs.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
'windwp/nvim-autopairs',
|
||||
config = function()
|
||||
-- 配合cmp,我也不知道有啥效果
|
||||
-- local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
-- local cmp = require('cmp')
|
||||
-- cmp.event:on(
|
||||
-- 'confirm_done',
|
||||
-- cmp_autopairs.on_confirm_done()
|
||||
-- )
|
||||
|
||||
require('nvim-autopairs').setup({
|
||||
-- 在写markdown时禁用括号补全
|
||||
disable_filetype = {"markdown"},
|
||||
-- can use treesitter to check for a pair.
|
||||
check_ts = true,
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue