kak: use my own mirror plugin

This commit is contained in:
lelgenio 2022-02-06 01:02:52 -03:00
parent f2e8bad010
commit 0fbc722d9e
1 changed files with 2 additions and 21 deletions

View File

@ -27,27 +27,8 @@ plug 'alexherbo2/auto-pairs.kak' commit "fd735ec149ef0d9ca5f628a95b1e52858b5afbd
auto-pairs-enable
}
# plug 'h-youhei/kakoune-surround' %{
# map global user 's' ': enter-user-mode surround<ret>' -docstring 'surround mode'
# map global surround 's' ': surround<ret>' -docstring 'surround'
# map global surround 'c' ': change-surround<ret>' -docstring 'change'
# map global surround 'd' ': delete-surround<ret>' -docstring 'delete'
# map global surround 'x' ': select-surround<ret>' -docstring 'select surround'
# }
plug 'delapouite/kakoune-mirror' %{
# Suggested mapping
map global user "s" ': enter-user-mode mirror<ret>' -docstring 'surround mode'
{%@@ for old, new in [
[ "h", key.left, ],
[ "l", key.right, ],
[ "k", key.up, ],
[ "j", key.down, ],
] @@%}
{%@@ set NEW, OLD = new.upper(), old.upper()@@%}
map global mirror {{@@ new @@}} {{@@ old @@}}
map global mirror {{@@ NEW @@}} {{@@ OLD @@}}
{%@@ endfor @@%}
plug 'lelgenio/kakoune-mirror-colemak' config %{
map global user "s" ': enter-user-mode mirror<ret>'
}
plug 'delapouite/kakoune-palette'