feat(ftplugin): add terraform surround
This commit is contained in:
@@ -4,3 +4,15 @@ vim.opt.tabstop = 2
|
||||
vim.opt.expandtab = true
|
||||
vim.bo.commentstring = '# %s'
|
||||
|
||||
local surround = require('nvim-surround')
|
||||
|
||||
surround.buffer_setup({
|
||||
surrounds = {
|
||||
['v'] = {
|
||||
add = { '${', '}' },
|
||||
find = '%${[^}]-}',
|
||||
delete = '(%${)().+(})()$',
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user