Mercurial > dotfiles
diff .chezmoitemplates/init.lua @ 474:f3a6e8090a2d
Fix rule config for nvim-autopairs
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 03 Oct 2021 18:10:38 +0200 |
parents | 5b625df6edf2 |
children | aefe8ec6adc7 |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Sun Oct 03 11:21:10 2021 +0200 +++ b/.chezmoitemplates/init.lua Sun Oct 03 18:10:38 2021 +0200 @@ -91,7 +91,6 @@ use { 'tpope/vim-surround' } use { 'windwp/nvim-autopairs', - commit = '0e5a11555ef4bfb18d21362119549a880031723b', config = function() local npairs = require 'nvim-autopairs' local Rule = require 'nvim-autopairs.rule' @@ -141,7 +140,7 @@ return vim.bo.filetype ~= 'systemverilog' end) - npairs.get_rule("'"):with_pair(function() + npairs.get_rule("'")[1]:with_pair(function() return vim.bo.filetype ~= 'systemverilog' end) end,