mini-surround.lua (372B)
1 if not pcall(require, 'mini.surround') then return end 2 3 local ts_input = require 'mini.surround'.gen_spec.input.treesitter 4 require 'mini.surround'.setup { 5 custom_surroundings = { 6 -- Use tree-sitter to search for function call 7 -- f = { 8 -- input = ts_input { outer = '@call.outer', inner = '@call.inner' } 9 -- }, 10 }, 11 mappings = { suffix_last = "p" } 12 }