feat(ftplugin): add terraform surround

This commit is contained in:
2026-02-16 11:35:24 +02:00
parent 40bdbd29d0
commit 02f9153d13

View File

@@ -4,3 +4,15 @@ vim.opt.tabstop = 2
vim.opt.expandtab = true vim.opt.expandtab = true
vim.bo.commentstring = '# %s' vim.bo.commentstring = '# %s'
local surround = require('nvim-surround')
surround.buffer_setup({
surrounds = {
['v'] = {
add = { '${', '}' },
find = '%${[^}]-}',
delete = '(%${)().+(})()$',
}
}
})