about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-03-19 11:12:16 +0900
committersefidel <contact@sefidel.net>2022-03-19 11:12:16 +0900
commit315421a15f8a8659a8e95388e0fe3c23ee8d7d3e (patch)
tree70c289b6150b296421e0f529261bf72e2f9c1782
parent4a03a1ce25b054bd318817cbb286d644dcae8337 (diff)
downloadnvimrc-315421a15f8a8659a8e95388e0fe3c23ee8d7d3e.tar.gz
nvimrc-315421a15f8a8659a8e95388e0fe3c23ee8d7d3e.zip
feat(keymaps)!: remap move lines
* A-j, A-k -> A-e, A-r

* reverts dec8d6a
-rw-r--r--fnl/nvrc/keymaps.fnl12
-rw-r--r--fnl/nvrc/packs/treesitter.fnl2
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"