another day
This commit is contained in:
parent
feb59d91c5
commit
1bbc50e3a9
27 changed files with 419 additions and 246 deletions
|
|
@ -1,9 +1,19 @@
|
|||
return {
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
event = 'InsertEnter',
|
||||
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||
opts = {
|
||||
check_ts = true,
|
||||
|
||||
ts_config = {
|
||||
lua = { 'string' }, -- it will not add a pair on that treesitter node
|
||||
javascript = { 'template_string' },
|
||||
java = false, -- don't check treesitter on java
|
||||
},
|
||||
enable_check_bracket_line = true,
|
||||
},
|
||||
config = function()
|
||||
require('nvim-autopairs').setup {}
|
||||
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
|
||||
local cmp = require 'cmp'
|
||||
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue