✨ feat(nvim): add some new keymaps to the vscode extra
This commit is contained in:
parent
ab5e40bf1e
commit
e8e9c00648
3 changed files with 15 additions and 4 deletions
|
@ -64,7 +64,7 @@
|
||||||
"multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" },
|
"multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" },
|
||||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "2f2d08894bbc679d4d181604c16bb7079f646384" },
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "2f2d08894bbc679d4d181604c16bb7079f646384" },
|
||||||
"neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" },
|
"neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" },
|
||||||
"neodev.nvim": { "branch": "main", "commit": "627912767e31631e282c9724f32057cb62b4ebf7" },
|
"neodev.nvim": { "branch": "main", "commit": "505860e0277611434f4e8d61d3c0d373045e57e1" },
|
||||||
"neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
|
"neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
|
||||||
"neotest": { "branch": "master", "commit": "dcdb40ea48f9c7b67a5576f6bb2e5f63ec15f2c0" },
|
"neotest": { "branch": "master", "commit": "dcdb40ea48f9c7b67a5576f6bb2e5f63ec15f2c0" },
|
||||||
"neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" },
|
"neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" },
|
||||||
|
|
|
@ -29,6 +29,7 @@ return {
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ag", "<Cmd>DookuGenerate<CR>", desc = "Generate HTML Docs" },
|
{ "<leader>ag", "<Cmd>DookuGenerate<CR>", desc = "Generate HTML Docs" },
|
||||||
|
{ "<leader>ao", "<Cmd>DookuOpen<CR>", desc = "Open HTML Docs" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ local enabled = {
|
||||||
"nvim-various-textobjs",
|
"nvim-various-textobjs",
|
||||||
"nvim-ts-context-commentstring",
|
"nvim-ts-context-commentstring",
|
||||||
"vim-repeat",
|
"vim-repeat",
|
||||||
|
"vim-carbon-now-sh",
|
||||||
"highlight-undo.nvim",
|
"highlight-undo.nvim",
|
||||||
"ts-node-action",
|
"ts-node-action",
|
||||||
"LazyVim",
|
"LazyVim",
|
||||||
|
@ -58,8 +59,10 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
map("n", "<leader>ss", vscode_action("workbench.action.gotoSymbol"))
|
map("n", "<leader>ss", vscode_action("workbench.action.gotoSymbol"))
|
||||||
-- view problems
|
-- view problems
|
||||||
map("n", "<leader>xx", vscode_action("workbench.actions.view.problems"))
|
map("n", "<leader>xx", vscode_action("workbench.actions.view.problems"))
|
||||||
-- open file explorer in left sidebar
|
-- open file explorer
|
||||||
map("n", "<leader>e", vscode_action("workbench.view.explorer"))
|
map("n", "<leader>e", vscode_action("workbench.view.explorer"))
|
||||||
|
-- toggle side bar
|
||||||
|
map("n", "<leader>ue", vscode_action("workbench.action.toggleSidebarVisibility"))
|
||||||
-- terminal
|
-- terminal
|
||||||
map("n", [[<c-\>]], vscode_action("workbench.action.terminal.toggleTerminal"))
|
map("n", [[<c-\>]], vscode_action("workbench.action.terminal.toggleTerminal"))
|
||||||
map("n", "<leader>fts", vscode_action("workbench.action.terminal.newWithCwd"))
|
map("n", "<leader>fts", vscode_action("workbench.action.terminal.newWithCwd"))
|
||||||
|
@ -70,8 +73,6 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
-- windows
|
-- windows
|
||||||
map("n", "<leader>|", vscode_action("workbench.action.splitEditorRight"))
|
map("n", "<leader>|", vscode_action("workbench.action.splitEditorRight"))
|
||||||
map("n", "<leader>-", vscode_action("workbench.action.splitEditorDown"))
|
map("n", "<leader>-", vscode_action("workbench.action.splitEditorDown"))
|
||||||
-- explorer
|
|
||||||
map("n", "<S-h>", vscode_action("toggleexcludedfiles.toggle"))
|
|
||||||
-- LSP actions
|
-- LSP actions
|
||||||
map("n", "<leader>ca", vscode_action("editor.action.codeAction"))
|
map("n", "<leader>ca", vscode_action("editor.action.codeAction"))
|
||||||
map("n", "gy", vscode_action("editor.action.goToTypeDefinition"))
|
map("n", "gy", vscode_action("editor.action.goToTypeDefinition"))
|
||||||
|
@ -97,6 +98,15 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
-- cspell
|
-- cspell
|
||||||
map("n", "<leader>!", vscode_action("cSpell.addWordToDictionary"))
|
map("n", "<leader>!", vscode_action("cSpell.addWordToDictionary"))
|
||||||
map("n", "<leader>us", vscode_action("cSpell.toggleEnableSpellChecker"))
|
map("n", "<leader>us", vscode_action("cSpell.toggleEnableSpellChecker"))
|
||||||
|
-- comments
|
||||||
|
map("n", "<leader>xt", vscode_action("workspaceAnchors.focus"))
|
||||||
|
-- git
|
||||||
|
map("n", "<leader>gg", vscode_action("gitlens.views.home.focus"))
|
||||||
|
map("n", "<leader>ub", vscode_action("gitlens.toggleFileBlame"))
|
||||||
|
-- statusline
|
||||||
|
map("n", "<leader>uS", vscode_action("workbench.action.toggleStatusbarVisibility"))
|
||||||
|
-- markdown preview
|
||||||
|
map("n", "<leader>cp", vscode_action("markdown.showPreviewToSide"))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue