blob: 5af2d0454ff657a25a770a7a623ab89c9de2f69f (
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
|
(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 ":lua require('nvrc.utils').del_buf() <cr>")
(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! [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] :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>")
|