feat(nvim): add some new keymaps to the vscode extra

This commit is contained in:
Sergio Laín 2024-01-17 13:30:35 +01:00
parent 8a23b8b373
commit b98ee360dd
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 26 additions and 10 deletions

View file

@ -285,4 +285,19 @@
"command": "-toggleexcludedfiles.toggle", "command": "-toggleexcludedfiles.toggle",
"when": "filesExplorerFocus" "when": "filesExplorerFocus"
}, },
{
"key": "alt+enter",
"command": "-notebook.cell.executeAndInsertBelow",
"when": "notebookCellListFocused && notebookCellType == 'markup' || notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0"
},
{
"key": "alt+enter",
"command": "editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
{
"key": "tab",
"command": "-editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
] ]

View file

@ -27,7 +27,7 @@
"diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
"dooku.nvim": { "branch": "main", "commit": "0d471187f512c1fd96ed8c0a70df61a0473f8cca" }, "dooku.nvim": { "branch": "main", "commit": "0d471187f512c1fd96ed8c0a70df61a0473f8cca" },
"dressing.nvim": { "branch": "master", "commit": "c1179336aaeca82a785cade27e9b7b276af3222e" }, "dressing.nvim": { "branch": "master", "commit": "c1179336aaeca82a785cade27e9b7b276af3222e" },
"dropbar.nvim": { "branch": "master", "commit": "982d728f948ce768475454a0cf16bebc12674e28" }, "dropbar.nvim": { "branch": "master", "commit": "b1b59792a26e212a61acf8c78d393e4d4295dfc1" },
"edgy.nvim": { "branch": "main", "commit": "8355be45610afdf79a0bab32b91ee297997455b4" }, "edgy.nvim": { "branch": "main", "commit": "8355be45610afdf79a0bab32b91ee297997455b4" },
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
"friendly-snippets": { "branch": "main", "commit": "69a2c1675b66e002799f5eef803b87a12f593049" }, "friendly-snippets": { "branch": "main", "commit": "69a2c1675b66e002799f5eef803b87a12f593049" },
@ -99,7 +99,7 @@
"nvim-regexplainer": { "branch": "main", "commit": "78fff711edcb986a05a03253c28a90e32c4ce31f" }, "nvim-regexplainer": { "branch": "main", "commit": "78fff711edcb986a05a03253c28a90e32c4ce31f" },
"nvim-scissors": { "branch": "main", "commit": "63d05e732d1403fcd7c7e1fb6b55763adcd08b64" }, "nvim-scissors": { "branch": "main", "commit": "63d05e732d1403fcd7c7e1fb6b55763adcd08b64" },
"nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" }, "nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" },
"nvim-treesitter": { "branch": "master", "commit": "94cb036ba7bd2b4086c04c945da5e983b5e8b322" }, "nvim-treesitter": { "branch": "master", "commit": "07c8c3d84f67b1530f636dcad31971f569a3df5f" },
"nvim-treesitter-context": { "branch": "master", "commit": "2017a0d7fc2d3790d823feddedada506984a10ce" }, "nvim-treesitter-context": { "branch": "master", "commit": "2017a0d7fc2d3790d823feddedada506984a10ce" },
"nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "19a91a38b02c1c28c14e0ba468d20ae1423c39b2" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "19a91a38b02c1c28c14e0ba468d20ae1423c39b2" },

View file

@ -88,14 +88,15 @@ vim.api.nvim_create_autocmd("User", {
-- project manager -- project manager
map("n", "<leader>fp", vscode_action("projectManager.listProjects")) map("n", "<leader>fp", vscode_action("projectManager.listProjects"))
-- zoxide -- zoxide
map( -- stylua: ignore
"n", map("n", "<leader>fz", vscode_action("terminalCommandKeys.run",
"<leader>fz", { args = { cmd = "cdzc", newTerminal = false, saveAllFiles = false, showTerminal = true, focus = true } }
vscode_action( ))
"terminalCommandKeys.run", -- zen mode
{ args = { cmd = "cdzc", newTerminal = false, saveAllFiles = false, showTerminal = true, focus = true } } 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"))
end, end,
}) })