mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(mini.surround): don't create empty keymaps. Fixes #296
This commit is contained in:
parent
a0cf00c81b
commit
8e84dcf85c
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ return {
|
|||
{ opts.mappings.replace, desc = "Replace surrounding" },
|
||||
{ opts.mappings.update_n_lines, desc = "Update `MiniSurround.config.n_lines`" },
|
||||
}
|
||||
mappings = vim.tbl_filter(function(m)
|
||||
return m[1] and #m[1] > 0
|
||||
end, mappings)
|
||||
return vim.list_extend(mappings, keys)
|
||||
end,
|
||||
opts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue