From 72d448e384249103748ee83b587c45924e4bc44d Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 10 Feb 2022 00:24:03 +0900 Subject: Initial commit --- fnl/nvrc/keymaps.fnl | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 fnl/nvrc/keymaps.fnl (limited to 'fnl/nvrc/keymaps.fnl') diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl new file mode 100644 index 0000000..67b0d70 --- /dev/null +++ b/fnl/nvrc/keymaps.fnl @@ -0,0 +1,45 @@ +(import-macros {: map!} :nvrc.macro.keymap) +(import-macros {: setv!} :nvrc.macro.set) + +(map! [n] : "" "") +(setv! mapleader " ") + +(map! [n :silent] :fe ":NvimTreeToggle ") +(map! [n :silent] :ft ":NvimTreeFocus ") + +(map! [n :silent] :/ + ":lua require('Comment.api').toggle_current_linewise() ") +(map! [v :silent] :/ + ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode()) ") + +(map! [n :silent] :ff ":Telescope find_files ") +(map! [n :silent] :fc ":Telescope grep_string ") +(map! [n :silent] :fs ":Telescope live_grep ") +(map! [n :silent] :fa + ":Telescope find_files follow=true no_ignore=true hidden=true ") +(map! [n :silent] :fb ":Telescope buffers ") +(map! [n :silent] :gc ":Telescope git_commits ") +(map! [n :silent] :gs ":Telescope 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! [t] :jk "") +(map! [t :silent] :JK " :lua require ('nvrc.utils').close_buf() ") +(map! [n :silent] :tl ":Telescope terms ") +; FIXME This opens on top of existing vertical/horizontal term +(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] :q ":lua require('nvrc.utils').close_buf() ") +(map! [n :silent] :ya ":%y+ ") +(map! [n :silent] :bn ":enew ") +(map! [n :silent] :wn ":tabnew ") +(map! [n :silent] :lt ":set nu! ") -- cgit 1.4.1