From cfad6430a535ee0870025bfa4bec813598716f7d Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 2 Sep 2023 20:20:43 +0900 Subject: feat(keymaps)!: sync with wm --- fnl/nvrc/keymaps.fnl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'fnl') diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl index 349464b..9356c61 100644 --- a/fnl/nvrc/keymaps.fnl +++ b/fnl/nvrc/keymaps.fnl @@ -8,13 +8,15 @@ (map! [n] ";" ":") (map! [n :silent] :q ":bprev ") +(map! [n :silent] :w ":bd ") (map! [n :silent] :e ":bnext ") -(map! [n :silent] :o ":enew ") +(map! [n :silent] :r ":enew ") (map! [n :silent] :a ":tabnew ") +(map! [n :silent] :u ":tabprev ") +(map! [n :silent] :o ":tabnext ") (map! [n :silent] :s ":set nu! | :set rnu! ") -(map! [n :silent] :d ":buffers ") +(map! [n] :d ":b ") (map! [n :silent] :ya ":%y+ ") -(map! [n :silent] :u ":bd ") (map! [n] :c ":SwitchPalette ") (map! [n :silent] :/ ((. (. (. (require :Comment.api) :toggle) :linewise) @@ -55,7 +57,7 @@ (map! [n :silent] :Po ":lopen") (map! [n :silent] :Pq ":lclose") -; work with word wrap +;; Work with word wrap (map! [n :expr :silent] :k "v:count == 0 ? 'gk' : 'k'") (map! [n :expr :silent] :j "v:count == 0 ? 'gj' : 'j'") @@ -66,5 +68,5 @@ (map! [v] : ":m '>+1gv=gv") (map! [v] : ":m '<-2gv=gv") -(map! [n] :ll (vim.lsp.buf.hover)) +(map! [n] :k (vim.lsp.buf.hover)) (map! [n] :b ((. (require :dap) :toggle_breakpoint))) -- cgit 1.4.1