update arch
This commit is contained in:
96
.config/nvim/lua/old/mappings.lua
Normal file
96
.config/nvim/lua/old/mappings.lua
Normal file
@@ -0,0 +1,96 @@
|
||||
local M = {}
|
||||
|
||||
M.general = {
|
||||
n = {
|
||||
["<C-h>"] = {"<cmd> TmuxNavigateLeft<CR>", "window left"},
|
||||
["<C-l>"] = {"<cmd> TmuxNavigateRight<CR>", "window right"},
|
||||
["<C-j>"] = {"<cmd> TmuxNavigateDown<CR>", "window down"},
|
||||
["<C-k>"] = {"<cmd> TmuxNavigateUp<CR>", "window up"},
|
||||
}
|
||||
}
|
||||
|
||||
M.dap = {
|
||||
plugin = true,
|
||||
n = {
|
||||
["<leader>db"] = {
|
||||
"<cmd> DapToggleBreakpoint <CR>",
|
||||
"Add breakpoint at line"
|
||||
},
|
||||
["<F5>"] = {
|
||||
"<cmd> DapContinue <CR>",
|
||||
"Start Debugging"
|
||||
},
|
||||
["<F6>"] = {
|
||||
"<cmd> DapTerminate <CR>",
|
||||
"Stop Debugging"
|
||||
},
|
||||
["<F10>"] = {
|
||||
"<cmd> DapStepOver <CR>",
|
||||
"Step Over"
|
||||
},
|
||||
["<F11>"] = {
|
||||
"<cmd> DapStepInto <CR>",
|
||||
"Step Into"
|
||||
},
|
||||
["<F12>"] = {
|
||||
"<cmd> DapStepOut <CR>",
|
||||
"Stop Out"
|
||||
},
|
||||
["<leader>dus"] = {
|
||||
function ()
|
||||
local widgets = require('dap.ui.widgets');
|
||||
local sidebar = widgets.sidebar(widgets.scopes);
|
||||
sidebar.open();
|
||||
end,
|
||||
"Open debugging sidebar"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
M.dap_go = {
|
||||
plugin = true,
|
||||
n = {
|
||||
["<leader>dgt"] = {
|
||||
function()
|
||||
require('dap-go').debug_test()
|
||||
end,
|
||||
"Debug go test"
|
||||
},
|
||||
["<leader>dgl"] = {
|
||||
function()
|
||||
require('dap-go').debug_last()
|
||||
end,
|
||||
"Debug last go test"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
M.gopher = {
|
||||
plugin = true,
|
||||
n = {
|
||||
["<leader>gsj"] = {
|
||||
"<cmd> GoTagAdd json <CR>",
|
||||
"Add json struct tags"
|
||||
},
|
||||
["<leader>gse"] = {
|
||||
"<cmd> GoTagAdd env <CR>",
|
||||
"Add env struct tags"
|
||||
},
|
||||
["<leader>gsy"] = {
|
||||
"<cmd> GoTagAdd yaml <CR>",
|
||||
"Add yaml struct tags"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
M.crates = {
|
||||
n = {
|
||||
["<leader>rcu"] = {
|
||||
function ()
|
||||
require('crates').upgrade_all_crates()
|
||||
end,
|
||||
"update crates"
|
||||
}
|
||||
}
|
||||
}
|
||||
return M
|
||||
Reference in New Issue
Block a user