From 846813e174b8a42ace40bddaf3d64d8ead63b874 Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 11 Feb 2022 00:38:15 +0900 Subject: feat(pack)!: migrate to fzf-lua --- fnl/nvrc/keymaps.fnl | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'fnl/nvrc/keymaps.fnl') diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl index 67b0d70..790d21b 100644 --- a/fnl/nvrc/keymaps.fnl +++ b/fnl/nvrc/keymaps.fnl @@ -12,14 +12,12 @@ (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 :silent] :ff ":FzfLua files ") +(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] :f :Lightspeed_f) (map! [n] :F :Lightspeed_F) @@ -31,14 +29,13 @@ (map! [n :silent] :ra ":TZAtaraxis ") (map! [t] :jk "") -(map! [t :silent] :JK " :lua require ('nvrc.utils').close_buf() ") -(map! [n :silent] :tl ":Telescope terms ") +(map! [t :silent] :JK " :lua require ('nvrc.utils').del_buf() ") ; 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] :q ":lua require('nvrc.utils').del_buf() ") (map! [n :silent] :ya ":%y+ ") (map! [n :silent] :bn ":enew ") (map! [n :silent] :wn ":tabnew ") -- cgit 1.4.1