Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
473:5b625df6edf2 | 474:f3a6e8090a2d |
---|---|
89 | 89 |
90 -- Parentheses etc | 90 -- Parentheses etc |
91 use { 'tpope/vim-surround' } | 91 use { 'tpope/vim-surround' } |
92 use { | 92 use { |
93 'windwp/nvim-autopairs', | 93 'windwp/nvim-autopairs', |
94 commit = '0e5a11555ef4bfb18d21362119549a880031723b', | |
95 config = function() | 94 config = function() |
96 local npairs = require 'nvim-autopairs' | 95 local npairs = require 'nvim-autopairs' |
97 local Rule = require 'nvim-autopairs.rule' | 96 local Rule = require 'nvim-autopairs.rule' |
98 | 97 |
99 require('nvim-autopairs.completion.cmp').setup { | 98 require('nvim-autopairs.completion.cmp').setup { |
139 | 138 |
140 npairs.get_rule('`'):with_pair(function() | 139 npairs.get_rule('`'):with_pair(function() |
141 return vim.bo.filetype ~= 'systemverilog' | 140 return vim.bo.filetype ~= 'systemverilog' |
142 end) | 141 end) |
143 | 142 |
144 npairs.get_rule("'"):with_pair(function() | 143 npairs.get_rule("'")[1]:with_pair(function() |
145 return vim.bo.filetype ~= 'systemverilog' | 144 return vim.bo.filetype ~= 'systemverilog' |
146 end) | 145 end) |
147 end, | 146 end, |
148 after = { 'nvim-cmp' }, | 147 after = { 'nvim-cmp' }, |
149 } | 148 } |