diff options
author | sefidel <contact@sefidel.net> | 2022-03-19 11:12:16 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-03-19 11:12:16 +0900 |
commit | 315421a15f8a8659a8e95388e0fe3c23ee8d7d3e (patch) | |
tree | 70c289b6150b296421e0f529261bf72e2f9c1782 /fnl/nvrc | |
parent | 4a03a1ce25b054bd318817cbb286d644dcae8337 (diff) | |
download | nvimrc-315421a15f8a8659a8e95388e0fe3c23ee8d7d3e.tar.gz nvimrc-315421a15f8a8659a8e95388e0fe3c23ee8d7d3e.zip |
feat(keymaps)!: remap move lines
* A-j, A-k -> A-e, A-r * reverts dec8d6a
Diffstat (limited to 'fnl/nvrc')
-rw-r--r-- | fnl/nvrc/keymaps.fnl | 12 | ||||
-rw-r--r-- | fnl/nvrc/packs/treesitter.fnl | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl index d98bd0c..da71bef 100644 --- a/fnl/nvrc/keymaps.fnl +++ b/fnl/nvrc/keymaps.fnl @@ -60,9 +60,9 @@ (map! [n :expr :silent] :k "v:count == 0 ? 'gk' : 'k'") (map! [n :expr :silent] :j "v:count == 0 ? 'gj' : 'j'") -(map! [n] :<A-j> ":m .+1<cr>==") -(map! [n] :<A-k> ":m .-2<cr>==") -(map! [i] :<A-j> "<esc>:m .+1<cr>==gi") -(map! [i] :<A-k> "<esc>:m .-2<cr>==gi") -(map! [v] :<A-j> ":m '>+1<cr>gv=gv") -(map! [v] :<A-k> ":m '<-2<cr>gv=gv") +(map! [n] :<A-e> ":m .+1<cr>==") +(map! [n] :<A-r> ":m .-2<cr>==") +(map! [i] :<A-e> "<esc>:m .+1<cr>==gi") +(map! [i] :<A-r> "<esc>:m .-2<cr>==gi") +(map! [v] :<A-e> ":m '>+1<cr>gv=gv") +(map! [v] :<A-r> ":m '<-2<cr>gv=gv") diff --git a/fnl/nvrc/packs/treesitter.fnl b/fnl/nvrc/packs/treesitter.fnl index bb7b019..84ce9da 100644 --- a/fnl/nvrc/packs/treesitter.fnl +++ b/fnl/nvrc/packs/treesitter.fnl @@ -34,7 +34,7 @@ :ad "@comment.outer" :am "@call.outer" :im "@call.inner"}} - :swap {:enable false + :swap {:enable true :swap_next {:<M-l> "@parameter.inner" :<M-j> "@function.outer"} :swap_previous {:<M-h> "@parameter.inner" |