blob: 9fbde8bb05658e805e73b06a9d4dee2da06231eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
(import-macros {: map!} :nvrc.macro.keymap)
(import-macros {: setv!} :nvrc.macro.set)
(map! [n] :<space> "" "")
(setv! mapleader " ")
(map! [n :silent] :<leader>e ":bprev <cr>")
(map! [n :silent] :<leader>r ":bnext <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! | :set rnu! <cr>")
(map! [n :silent] :<leader>d ":buffers <cr>")
(map! [n :silent] :<leader>ya ":%y+ <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 ((. (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)
(map! [n] :t :<plug>Lightspeed_t)
(map! [n] :T :<plug>Lightspeed_T)
(map! [n :silent] :<leader>t ":TZAtaraxis <cr>")
(map! [n :silent] :<leader>g ((. (require :lir.float) :toggle)))
|