nvim/.config/nvim/lua/plugins/coding/surround.lua

-- nvim/.config/nvim/lua/plugins/coding/surround.lua
-- mini.surround. Mappings follow the tpope/vim-surround style.

return {
  "echasnovski/mini.surround",
  version = false,
  keys = {
    { "sa", mode = { "n", "v" }, desc = "add surround" },
    { "sd", desc = "delete surround" },
    { "sr", desc = "replace surround" },
    { "sf", desc = "find right" },
    { "sF", desc = "find left" },
    { "sh", desc = "highlight surround" },
  },
  opts = {
    mappings = {
      add            = "sa",
      delete         = "sd",
      find           = "sf",
      find_left      = "sF",
      highlight      = "sh",
      replace        = "sr",
      update_n_lines = "sn",
    },
  },
}