kak: use my own mirror plugin
This commit is contained in:
parent
f2e8bad010
commit
0fbc722d9e
|
@ -27,27 +27,8 @@ plug 'alexherbo2/auto-pairs.kak' commit "fd735ec149ef0d9ca5f628a95b1e52858b5afbd
|
||||||
auto-pairs-enable
|
auto-pairs-enable
|
||||||
}
|
}
|
||||||
|
|
||||||
# plug 'h-youhei/kakoune-surround' %{
|
plug 'lelgenio/kakoune-mirror-colemak' config %{
|
||||||
# map global user 's' ': enter-user-mode surround<ret>' -docstring 'surround mode'
|
map global user "s" ': enter-user-mode mirror<ret>'
|
||||||
# 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 'delapouite/kakoune-palette'
|
plug 'delapouite/kakoune-palette'
|
||||||
|
|
Reference in New Issue