-
Notifications
You must be signed in to change notification settings - Fork 0
/
mappings.lua
53 lines (51 loc) · 1.06 KB
/
mappings.lua
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---@type MappingsTable
local M = {}
-- M.disabled = {
-- i = {
-- ["jj"] = "",
-- }
-- }
M.general = {
n = {
[";"] = { ":", "enter command mode", opts = { nowait = true } },
},
v = {
[">"] = { ">gv", "indent"},
},
i = {
["jj"] = {"<C-o>A;", "append a semi colon to end of line", opts = { nowait = true, silent = true } },
},
}
M.nvterm = {
n = {
["<leader>gg"] = { "<cmd> LazyGit <CR>", "Open lazygit" },
},
}
M.telescope = {
n = {
["<leader>fc"] = { "<cmd> Telescope grep_string <CR>", "Find word under cursor" },
["<leader>fr"] = { "<cmd> Telescope resume <CR>", "Resume last search" },
},
}
M.tabufline = {
n = {
["<leader>ca"] = {
function()
require("nvchad.tabufline").closeOtherBufs()
end,
"Closes all buffers except current one",
},
}
}
M.lspconfig = {
n = {
["<leader>cv"] = {
function()
vim.lsp.buf.code_action()
end,
"LSP code action",
},
}
}
-- more keybinds!
return M