about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-19 14:49:12 +0900
committersefidel <contact@sefidel.net>2022-02-19 14:49:12 +0900
commit98f9d3833df8346bbb55913ff479a6a0f6adbf0a (patch)
tree6ae8d6d2b2d4be822554053a76a3cc84a227f208
parent4a00e5495e01f4a69b39a053ea00e16e13a96d70 (diff)
downloadnvimrc-98f9d3833df8346bbb55913ff479a6a0f6adbf0a.tar.gz
nvimrc-98f9d3833df8346bbb55913ff479a6a0f6adbf0a.zip
feat(keybinds)!: remap
* remove unnecessary terminal keybinds
* move some keybinds to higher level
-rw-r--r--fnl/nvrc/keymaps.fnl31
1 files changed, 10 insertions, 21 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl
index 7871cd3..64c0a5b 100644
--- a/fnl/nvrc/keymaps.fnl
+++ b/fnl/nvrc/keymaps.fnl
@@ -6,6 +6,11 @@
 
 (map! [n :silent] :<leader>e ":bprev <cr>")
 (map! [n :silent] :<leader>r ":bnext <cr>")
+(map! [n :silent] :<leader>q ":lua require('nvrc.utils').del_buf() <cr>")
+(map! [n :silent] :<leader>w ":enew <cr>")
+(map! [n :silent] :<leader>a ":tabnew <cr>")
+(map! [n :silent] :<leader>s ":set nu! <cr>")
+(map! [n :silent] :<leader>ya ":%y+ <cr>")
 
 (map! [n :silent] :<leader>/
       ":lua require('Comment.api').toggle_current_linewise() <cr>")
@@ -24,29 +29,13 @@
 (map! [n] :t :<plug>Lightspeed_t)
 (map! [n] :T :<plug>Lightspeed_T)
 
-(map! [n :silent] :<leader>mm ":TZMinimalist <cr>")
-(map! [n :silent] :<leader>mf ":TZFocus <cr>")
-(map! [n :silent] :<leader>ma ":TZAtaraxis <cr>")
+(map! [n :silent] :<leader>ts ":TZMinimalist <cr>")
+(map! [n :silent] :<leader>tf ":TZFocus <cr>")
+(map! [n :silent] :<leader>ta ":TZAtaraxis <cr>")
 
 (map! [n :silent] :<leader>h ":lua require('harpoon.ui').nav_file(1) <cr>")
 (map! [n :silent] :<leader>j ":lua require('harpoon.ui').nav_file(2) <cr>")
 (map! [n :silent] :<leader>k ":lua require('harpoon.ui').nav_file(3) <cr>")
 (map! [n :silent] :<leader>l ":lua require('harpoon.ui').nav_file(4) <cr>")
-(map! [n :silent] "<leader>;" ":lua require('harpoon.term').gotoTerminal(1) <cr>")
-(map! [n :silent] "<leader>'" ":lua require('harpoon.term').gotoTerminal(2) <cr>")
-(map! [n :silent] :<leader>g ":lua require('harpoon.ui').toggle_quick_menu() <cr>")
-(map! [n :silent] :<leader>u ":lua require('harpoon.mark').add_file() <cr>")
-
-(map! [t] :jk "<C-\\><C-n>")
-(map! [t :silent] :JK "<C-\\><C-n> :lua require ('nvrc.utils').del_buf() <cr>")
-; FIXME This opens on top of existing vertical/horizontal term
-; TODO come up with a better category key
-(map! [n :silent] :<leader>th ":execute 15 .. 'new +terminal' | let b:term_type = 'hori' <cr>")
-(map! [n :silent] :<leader>tj ":execute 'vnew +terminal' | let b:term_type = 'vert' <cr>")
-(map! [n :silent] :<leader>tk ":execute 'terminal' | let b:term_type = 'wind' <cr>")
-
-(map! [n :silent] :<leader>q ":lua require('nvrc.utils').del_buf() <cr>")
-(map! [n :silent] :<leader>ya ":%y+ <cr>")
-(map! [n :silent] :<leader>bn ":enew <cr>")
-(map! [n :silent] :<leader>wn ":tabnew <cr>")
-(map! [n :silent] :<leader>tl ":set nu! <cr>")
+(map! [n :silent] "<leader>;" ":lua require('harpoon.ui').toggle_quick_menu() <cr>")
+(map! [n :silent] "<leader>'" ":lua require('harpoon.mark').add_file() <cr>")