Skip to content

Commit

Permalink
refactor: use vim.v instead of vim.cmd('let v:...') (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Apr 9, 2023
1 parent 0fd6519 commit 7470af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-autopairs/utils.lua
Expand Up @@ -17,7 +17,7 @@ M.key = {

M.set_vchar = function(text)
text = text:gsub('"', '\\"')
vim.cmd(string.format([[let v:char = "%s"]],text))
vim.v.char = text
end


Expand Down

0 comments on commit 7470af8

Please sign in to comment.