fix(mini.surround): manually define 'gsn' keymap to update n_lines configuration

This commit is contained in:
Joshua Inscoe 2025-11-22 14:34:15 +02:00
parent c64a61734f
commit 71148bc268

View file

@ -14,7 +14,11 @@ return {
{ opts.mappings.find_left, desc = "Find Left Surrounding" },
{ opts.mappings.highlight, desc = "Highlight Surrounding" },
{ opts.mappings.replace, desc = "Replace Surrounding" },
{ opts.mappings.update_n_lines, desc = "Update `MiniSurround.config.n_lines`" },
{
opts.mappings.update_n_lines,
"<Cmd>lua MiniSurround.update_n_lines()<CR>",
desc = "Update `MiniSurround.config.n_lines`",
},
}
mappings = vim.tbl_filter(function(m)
return m[1] and #m[1] > 0