From 2fb74089d3515077395299bce9df32e9e989a8ac Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 16 Feb 2022 08:54:25 +0900 Subject: rel: v0.1 - Disable lazy-loading plugins - Add more useful plugins - Fix bar from loading slowly - Add support for neomutt - Change keybinds - Add Editorconfig --- fnl/nvrc/keymaps.fnl | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'fnl/nvrc/keymaps.fnl') diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl index 790d21b..c3bf6c0 100644 --- a/fnl/nvrc/keymaps.fnl +++ b/fnl/nvrc/keymaps.fnl @@ -4,8 +4,8 @@ (map! [n] : "" "") (setv! mapleader " ") -(map! [n :silent] :fe ":NvimTreeToggle ") -(map! [n :silent] :ft ":NvimTreeFocus ") +(map! [n :silent] :e ":bprev ") +(map! [n :silent] :r ":bnext ") (map! [n :silent] :/ ":lua require('Comment.api').toggle_current_linewise() ") @@ -16,27 +16,37 @@ (map! [n :silent] :fc ":FzfLua grep ") (map! [n :silent] :fs ":FzfLua live_grep ") (map! [n :silent] :fb ":FzfLua buffers ") -(map! [n :silent] :gc ":FzfLua git_commits ") -(map! [n :silent] :gs ":FzfLua git_status ") +(map! [n :silent] :fg ":FzfLua git_commits ") +(map! [n :silent] :fs ":FzfLua git_status ") (map! [n] :f :Lightspeed_f) (map! [n] :F :Lightspeed_F) (map! [n] :t :Lightspeed_t) (map! [n] :T :Lightspeed_T) -(map! [n :silent] :rm ":TZMinimalist ") -(map! [n :silent] :rf ":TZFocus ") -(map! [n :silent] :ra ":TZAtaraxis ") +(map! [n :silent] :mm ":TZMinimalist ") +(map! [n :silent] :mf ":TZFocus ") +(map! [n :silent] :ma ":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] :tv ":execute 'vnew +terminal' | let b:term_type = 'vert' ") -(map! [n :silent] :tn ":execute 'terminal' | let b:term_type = 'wind' ") +(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] :lt ":set nu! ") +(map! [n :silent] :tl ":set nu! ") -- cgit 1.4.1