Skip to content

Commit

Permalink
fix: use v:lua without parens
Browse files Browse the repository at this point in the history
  • Loading branch information
windwp committed Feb 20, 2024
1 parent d4aef9d commit 90f824d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/nvim-autopairs.lua
Expand Up @@ -624,7 +624,7 @@ M.autopairs_afterquote = function(line, key_char)
append = 'la'
end
return utils.esc(
"<esc><cmd>lua require('nvim-autopairs').autopairs_closequote_expr()<cr>" .. append
"<esc><cmd>lua require'nvim-autopairs'.autopairs_closequote_expr()<cr>" .. append
)
end
end
Expand Down Expand Up @@ -655,7 +655,7 @@ M.map_cr = function()
api.nvim_set_keymap(
'i',
'<CR>',
"v:lua.require('nvim-autopairs').completion_confirm()",
"v:lua.require'nvim-autopairs'.completion_confirm()",
{ expr = true, noremap = true }
)
end
Expand Down

0 comments on commit 90f824d

Please sign in to comment.