diff options
-rw-r--r-- | fnl/nvrc/keymaps.fnl | 19 | ||||
-rw-r--r-- | fnl/nvrc/pack.fnl | 2 |
2 files changed, 11 insertions, 10 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl index 5af2d04..fb7091e 100644 --- a/fnl/nvrc/keymaps.fnl +++ b/fnl/nvrc/keymaps.fnl @@ -6,24 +6,23 @@ (map! [n :silent] :<leader>e ":bprev <cr>") (map! [n :silent] :<leader>r ":bnext <cr>") -(map! [n :silent] :<leader>q ":lua require('nvrc.utils').del_buf() <cr>") +(map! [n :silent] :<leader>q ((. (require :nvrc.utils) :del_buf))) (map! [n :silent] :<leader>w ":enew <cr>") (map! [n :silent] :<leader>a ":tabnew <cr>") (map! [n :silent] :<leader>s ":set nu! <cr>") (map! [n :silent] :<leader>d ":buffers <cr>") (map! [n :silent] :<leader>ya ":%y+ <cr>") -(map! [n :silent] :<leader>/ - ":lua require('Comment.api').toggle_current_linewise() <cr>") +(map! [n :silent] :<leader>/ ((. (require :Comment.api) :toggle_current_linewise))) (map! [v :silent] :<leader>/ ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode()) <cr>") -(map! [n :silent] :<leader>ff ":FzfLua files <cr>") -(map! [n :silent] :<leader>fd ":FzfLua grep <cr>") -(map! [n :silent] :<leader>fl ":FzfLua live_grep <cr>") -(map! [n :silent] :<leader>fb ":FzfLua buffers <cr>") -(map! [n :silent] :<leader>fg ":FzfLua git_commits <cr>") -(map! [n :silent] :<leader>fh ":FzfLua git_status <cr>") +(map! [n :silent] :<leader>ff ((. (require :fzf-lua) :files))) +(map! [n :silent] :<leader>fd ((. (require :fzf-lua) :grep))) +(map! [n :silent] :<leader>fl ((. (require :fzf-lua) :live_grep))) +(map! [n :silent] :<leader>fb ((. (require :fzf-lua) :buffer))) +(map! [n :silent] :<leader>fg ((. (require :fzf-lua) :git_commits))) +(map! [n :silent] :<leader>fh ((. (require :fzf-lua) :git_status))) (map! [n] :f :<plug>Lightspeed_f) (map! [n] :F :<plug>Lightspeed_F) @@ -31,3 +30,5 @@ (map! [n] :T :<plug>Lightspeed_T) (map! [n :silent] :<leader>t ":TZAtaraxis <cr>") + +(map! [n :silent] :<leader>g ((. (require :lir.float) :toggle))) diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl index e207602..73a038f 100644 --- a/fnl/nvrc/pack.fnl +++ b/fnl/nvrc/pack.fnl @@ -26,7 +26,7 @@ (pack! :hrsh7th/nvim-cmp {:req :cmp :event :InsertCharPre}) (pack! :numToStr/Comment.nvim {:module :Comment :init :Comment}) -(pack! :ibhagwan/fzf-lua {:req :fzf :cmd :FzfLua}) +(pack! :ibhagwan/fzf-lua {:req :fzf :module :fzf-lua}) (pack! :ggandor/lightspeed.nvim) (unpack!) |