From 98f9d3833df8346bbb55913ff479a6a0f6adbf0a Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 19 Feb 2022 14:49:12 +0900 Subject: feat(keybinds)!: remap * remove unnecessary terminal keybinds * move some keybinds to higher level --- fnl/nvrc/keymaps.fnl | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) (limited to 'fnl/nvrc/keymaps.fnl') 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] :e ":bprev ") (map! [n :silent] :r ":bnext ") +(map! [n :silent] :q ":lua require('nvrc.utils').del_buf() ") +(map! [n :silent] :w ":enew ") +(map! [n :silent] :a ":tabnew ") +(map! [n :silent] :s ":set nu! ") +(map! [n :silent] :ya ":%y+ ") (map! [n :silent] :/ ":lua require('Comment.api').toggle_current_linewise() ") @@ -24,29 +29,13 @@ (map! [n] :t :Lightspeed_t) (map! [n] :T :Lightspeed_T) -(map! [n :silent] :mm ":TZMinimalist ") -(map! [n :silent] :mf ":TZFocus ") -(map! [n :silent] :ma ":TZAtaraxis ") +(map! [n :silent] :ts ":TZMinimalist ") +(map! [n :silent] :tf ":TZFocus ") +(map! [n :silent] :ta ":TZAtaraxis ") (map! [n :silent] :h ":lua require('harpoon.ui').nav_file(1) ") (map! [n :silent] :j ":lua require('harpoon.ui').nav_file(2) ") (map! [n :silent] :k ":lua require('harpoon.ui').nav_file(3) ") (map! [n :silent] :l ":lua require('harpoon.ui').nav_file(4) ") -(map! [n :silent] ";" ":lua require('harpoon.term').gotoTerminal(1) ") -(map! [n :silent] "'" ":lua require('harpoon.term').gotoTerminal(2) ") -(map! [n :silent] :g ":lua require('harpoon.ui').toggle_quick_menu() ") -(map! [n :silent] :u ":lua require('harpoon.mark').add_file() ") - -(map! [t] :jk "") -(map! [t :silent] :JK " :lua require ('nvrc.utils').del_buf() ") -; FIXME This opens on top of existing vertical/horizontal term -; TODO come up with a better category key -(map! [n :silent] :th ":execute 15 .. 'new +terminal' | let b:term_type = 'hori' ") -(map! [n :silent] :tj ":execute 'vnew +terminal' | let b:term_type = 'vert' ") -(map! [n :silent] :tk ":execute 'terminal' | let b:term_type = 'wind' ") - -(map! [n :silent] :q ":lua require('nvrc.utils').del_buf() ") -(map! [n :silent] :ya ":%y+ ") -(map! [n :silent] :bn ":enew ") -(map! [n :silent] :wn ":tabnew ") -(map! [n :silent] :tl ":set nu! ") +(map! [n :silent] ";" ":lua require('harpoon.ui').toggle_quick_menu() ") +(map! [n :silent] "'" ":lua require('harpoon.mark').add_file() ") -- cgit 1.4.1