optimise some keybinds
This commit is contained in:
parent
ce5f0cf8e9
commit
24fe6e4534
1 changed files with 27 additions and 28 deletions
|
@ -69,7 +69,7 @@ return {
|
|||
[";"] = { "<cmd>Alpha<CR>", "Dashboard" },
|
||||
["/"] = { "<Plug>(comment_toggle_linewise_current)", "Comment toggle current line" },
|
||||
["w"] = { "<cmd>w!<CR>", "Save" },
|
||||
["c"] = { require("user.funcs").buf_kill, "Close" },
|
||||
["c"] = { function() require("user.funcs").buf_kill() end, "Close" },
|
||||
-- TODO: filepicker ["f"] = {},
|
||||
["h"] = { "<cmd>nohlsearch<CR>", "Clear Highlights" },
|
||||
["e"] = { "<cmd>NvimTreeToggle<CR>", "Toggle Filetree" },
|
||||
|
@ -95,54 +95,53 @@ return {
|
|||
},
|
||||
t = {
|
||||
name = "Todo Comments",
|
||||
j = { require("todo-comments").jump_next, "Next Comment" },
|
||||
k = { require("todo-comments").jump_prev, "Previous Comment" },
|
||||
j = { function() require("todo-comments").jump_next() end, "Next Comment" },
|
||||
k = { function() require("todo-comments").jump_prev() end, "Previous Comment" },
|
||||
},
|
||||
g = {
|
||||
name = "Git",
|
||||
j = { require("gitsigns").next_hunk, "Next Hunk" },
|
||||
k = { require("gitsigns").prev_hunk, "Prev Hunk" },
|
||||
l = { require("gitsigns").blame_line, "Blame" },
|
||||
p = { require("gitsigns").preview_hunk, "Preview Hunk" },
|
||||
r = { require("gitsigns").reset_hunk, "Reset Hunk" },
|
||||
R = { require("gitsigns").reset_buffer, "Reset Buffer" },
|
||||
s = { require("gitsigns").stage_hunk, "Stage Hunk" },
|
||||
u = { require("gitsigns").undo_stage_hunk, "Undo Stage Hunk" },
|
||||
j = { function() require("gitsigns").next_hunk() end, "Next Hunk" },
|
||||
k = { function() require("gitsigns").prev_hunk() end, "Prev Hunk" },
|
||||
l = { function() require("gitsigns").blame_line() end, "Blame" },
|
||||
p = { function() require("gitsigns").preview_hunk() end, "Preview Hunk" },
|
||||
r = { function() require("gitsigns").reset_hunk() end, "Reset Hunk" },
|
||||
R = { function() require("gitsigns").reset_buffer() end, "Reset Buffer" },
|
||||
s = { function() require("gitsigns").stage_hunk() end, "Stage Hunk" },
|
||||
u = { function() require("gitsigns").undo_stage_hunk() end, "Undo Stage Hunk" },
|
||||
o = { "<cmd>Telescope git_status<cr>", "Open changed file" },
|
||||
b = { "<cmd>Telescope git_branches<cr>", "Checkout branch" },
|
||||
c = { "<cmd>Telescope git_commits<cr>", "Checkout commit" },
|
||||
C = { "<cmd>Telescope git_bcommits<cr>", "Checkout commit(for current file)" },
|
||||
d = { "<cmd>Gitsigns diffthis HEAD<cr>", "Git Diff" },
|
||||
g = { _LAZYGIT_TOGGLE, "Toggle Lazygit"}
|
||||
},
|
||||
l = {
|
||||
name = "LSP",
|
||||
a = { vim.lsp.buf.code_action, "Code Action" },
|
||||
a = { function() vim.lsp.buf.code_action() end, "Code Action" },
|
||||
d = { "<cmd>Telescope diagnostics bufnr=0 theme=get_ivy<cr>", "Buffer Diagnostics" },
|
||||
w = { "<cmd>Telescope diagnostics<cr>", "Diagnostics" },
|
||||
f = { vim.lsp.buf.format{ async = true }, "Format" },
|
||||
f = { function() vim.lsp.buf.format{ async = true }() end, "Format" },
|
||||
i = { "<cmd>LspInfo<cr>", "Info" },
|
||||
I = { "<cmd>Mason<cr>", "Mason Info" },
|
||||
j = { vim.diagnostic.goto_next, "Next Diagnostic" },
|
||||
k = { vim.diagnostic.goto_prev, "Prev Diagnostic" },
|
||||
l = { vim.lsp.codelens.run, "CodeLens Action" },
|
||||
q = { vim.diagnostic.setloclist, "Quickfix" },
|
||||
r = { vim.lsp.buf.rename, "Rename" },
|
||||
j = { function() vim.diagnostic.goto_next() end, "Next Diagnostic" },
|
||||
k = { function() vim.diagnostic.goto_prev() end, "Prev Diagnostic" },
|
||||
l = { function() vim.lsp.codelens.run() end, "CodeLens Action" },
|
||||
q = { function() vim.diagnostic.setloclist() end, "Quickfix" },
|
||||
r = { function() vim.lsp.buf.rename() end, "Rename" },
|
||||
s = { "<cmd>Telescope lsp_document_symbols<cr>", "Document Symbols" },
|
||||
S = { "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", "Workspace Symbols" },
|
||||
e = { "<cmd>Telescope quickfix<cr>", "Telescope Quickfix" },
|
||||
},
|
||||
d = {
|
||||
name = "DAP",
|
||||
b = { require('dap').toggle_breakpoint, "Toggle Breakpoint"},
|
||||
c = { require('dap').continue, "Continue"},
|
||||
i = { require('dap').step_into, "Step Into"},
|
||||
o = { require('dap').step_over, "Step Over"},
|
||||
O = { require('dap').step_out, "Step Out"},
|
||||
r = { require('dap').repl.toggle, "Toggle REPL"},
|
||||
l = { require('dap').run_last, "Run Last"},
|
||||
u = { require('dapui').toggle, "Toggle DAP UI"},
|
||||
t = { require('dap').terminate, "Stop Debugger"},
|
||||
b = { function() require('dap').toggle_breakpoint() end, "Toggle Breakpoint"},
|
||||
c = { function() require('dap').continue() end, "Continue"},
|
||||
i = { function() require('dap').step_into() end, "Step Into"},
|
||||
o = { function() require('dap').step_over() end, "Step Over"},
|
||||
O = { function() require('dap').step_out() end, "Step Out"},
|
||||
r = { function() require('dap').repl.toggle() end, "Toggle REPL"},
|
||||
l = { function() require('dap').run_last() end, "Run Last"},
|
||||
u = { function() require('dapui').toggle() end, "Toggle DAP UI"},
|
||||
t = { function() require('dap').terminate() end, "Stop Debugger"},
|
||||
},
|
||||
u = {
|
||||
name = "Utility",
|
||||
|
|
Loading…
Add table
Reference in a new issue