update
This commit is contained in:
1 parent
19d9347db9
commit
3ac528c554
72 files changed
+1734
-3140
No files matched your search
@@ -25,6 +25,7 @@ local enabled = {
|
||||
"nvim-various-textobjs",
|
||||
"nvim-ts-context-commentstring",
|
||||
"vim-repeat",
|
||||
"vim-carbon-now-sh",
|
||||
"highlight-undo.nvim",
|
||||
"ts-node-action",
|
||||
"LazyVim",
|
||||
@@ -40,9 +41,9 @@ vim.o.spell = false
|
||||
vim.notify = vscode.notify
|
||||
vim.g.clipboard = vim.g.vscode_clipboard
|
||||
|
||||
local function vscode_action(cmd)
|
||||
local function vscode_action(cmd, opts)
|
||||
return function()
|
||||
vscode.action(cmd)
|
||||
vscode.action(cmd, opts)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -58,16 +59,54 @@ vim.api.nvim_create_autocmd("User", {
|
||||
map("n", "<leader>ss", vscode_action("workbench.action.gotoSymbol"))
|
||||
-- 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"))
|
||||
-- Code Action
|
||||
map("n", "<leader>ca", vscode_action("editor.action.codeAction"))
|
||||
-- Open terminal
|
||||
map("n", "<leader>ft", vscode_action("workbench.action.terminal.focus"))
|
||||
-- toggle side bar
|
||||
map("n", "<leader>ue", vscode_action("workbench.action.toggleSidebarVisibility"))
|
||||
-- terminal
|
||||
map("n", [[<c-\>]], vscode_action("workbench.action.terminal.toggleTerminal"))
|
||||
map("n", "<leader>fts", vscode_action("workbench.action.terminal.newWithCwd"))
|
||||
-- close editor
|
||||
map("n", "<leader>bd", vscode_action("workbench.action.closeActiveEditor"))
|
||||
-- breakpoints
|
||||
map("n", "<F2>", vscode_action("editor.debug.action.toggleBreakpoint"))
|
||||
-- windows
|
||||
map("n", "<leader>|", vscode_action("workbench.action.splitEditorRight"))
|
||||
map("n", "<leader>-", vscode_action("workbench.action.splitEditorDown"))
|
||||
-- LSP actions
|
||||
map("n", "<leader>ca", vscode_action("editor.action.codeAction"))
|
||||
map("n", "gy", vscode_action("editor.action.goToTypeDefinition"))
|
||||
map("n", "gr", vscode_action("editor.action.goToReferences"))
|
||||
map("n", "gi", vscode_action("editor.action.goToImplementation"))
|
||||
map("n", "K", vscode_action("editor.action.showHover"))
|
||||
map("n", "<leader>cr", vscode_action("editor.action.rename"))
|
||||
map("n", "<leader>co", vscode_action("editor.action.organizeImport"))
|
||||
map("n", "<leader>cf", vscode_action("editor.action.formatDocument"))
|
||||
-- refactor
|
||||
map("n", "<leader>cR", vscode_action("editor.action.refactor"))
|
||||
-- markdown preview
|
||||
map("n", "<leader>cp", vscode_action("markdown.showPreviewToSide"))
|
||||
-- project manager
|
||||
map("n", "<leader>fp", vscode_action("projectManager.listProjects"))
|
||||
-- zoxide
|
||||
-- stylua: ignore
|
||||
map("n", "<leader>fz", vscode_action("terminalCommandKeys.run",
|
||||
{ args = { cmd = "cdzc", newTerminal = false, saveAllFiles = false, showTerminal = true, focus = true } }
|
||||
))
|
||||
-- zen mode
|
||||
map("n", "<leader>z", vscode_action("workbench.action.toggleZenMode"))
|
||||
-- cspell
|
||||
map("n", "<leader>!", vscode_action("cSpell.addWordToDictionary"))
|
||||
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,
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user