feat(surround): add surround for ansible variables

This commit is contained in:
2026-02-13 16:26:03 +02:00
parent 62f2d0b543
commit 40bdbd29d0

View File

@@ -0,0 +1,15 @@
-- update this configuration of nvim-surround
-- to handle {{ }} structure in ansible
-- I want to be able to add and delete those braces
local surround = require('nvim-surround')
surround.buffer_setup({
surrounds = {
['v'] = {
add = { '{{ ', ' }}' },
find = '{{[^}]-}}',
delete = '({{%s+)().+(%s+}})()$',
}
}
})