✨ feat(vscodium): a bunch of new bindings
This commit is contained in:
parent
2562ccc7cf
commit
8a23b8b373
6 changed files with 72 additions and 44 deletions
|
@ -84,7 +84,7 @@
|
||||||
"command": "-workbench.action.showAllSymbols"
|
"command": "-workbench.action.showAllSymbols"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "ctrl+t",
|
"key": "ctrl+\\",
|
||||||
"command": "workbench.action.terminal.toggleTerminal",
|
"command": "workbench.action.terminal.toggleTerminal",
|
||||||
"when": "terminal.active"
|
"when": "terminal.active"
|
||||||
},
|
},
|
||||||
|
@ -276,8 +276,13 @@
|
||||||
"args": "<C-B>"
|
"args": "<C-B>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "h",
|
"key": "shift+h",
|
||||||
"command": "toggleexcludedfiles.toggle",
|
"command": "toggleexcludedfiles.toggle",
|
||||||
"when": "filesExplorerFocus"
|
"when": "filesExplorerFocus"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+shift+a",
|
||||||
|
"command": "-toggleexcludedfiles.toggle",
|
||||||
|
"when": "filesExplorerFocus"
|
||||||
|
},
|
||||||
]
|
]
|
|
@ -107,39 +107,39 @@
|
||||||
},
|
},
|
||||||
// Toggle excluded files
|
// Toggle excluded files
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/.git": true,
|
"**/.git": false,
|
||||||
"**/.svn": true,
|
"**/.svn": false,
|
||||||
"**/.hg": true,
|
"**/.hg": false,
|
||||||
"**/CVS": true,
|
"**/CVS": false,
|
||||||
"**/.DS_Store": true,
|
"**/.DS_Store": false,
|
||||||
"**/Thumbs.db": true,
|
"**/Thumbs.db": false,
|
||||||
"**/node_modules": true,
|
"**/node_modules": false,
|
||||||
"**/.next": true,
|
"**/.next": false,
|
||||||
"**/.husky": true,
|
"**/.husky": false,
|
||||||
"**/drizzle": true,
|
"**/drizzle": false,
|
||||||
"**/dist": true,
|
"**/dist": false,
|
||||||
"**/.todo.md": true,
|
"**/.todo.md": false,
|
||||||
"**/.vscode": true,
|
"**/.vscode": false,
|
||||||
"**/.eslintrc.cjs": true,
|
"**/.eslintrc.cjs": false,
|
||||||
"**/.editorconfig": true,
|
"**/.editorconfig": false,
|
||||||
"**/.gitignore": true,
|
"**/.gitignore": false,
|
||||||
"**/.lintstagedrc.mjs": true,
|
"**/.lintstagedrc.mjs": false,
|
||||||
"**/.markdownlint.json": true,
|
"**/.markdownlint.json": false,
|
||||||
"**/.markdownlintignore": true,
|
"**/.markdownlintignore": false,
|
||||||
"**/.prettierignore": true,
|
"**/.prettierignore": false,
|
||||||
"**/bun.lockb": true,
|
"**/bun.lockb": false,
|
||||||
"**/cspell.json": true,
|
"**/cspell.json": false,
|
||||||
"**/package-lock.json": true,
|
"**/package-lock.json": false,
|
||||||
"**/pnpm-lock.yaml": true,
|
"**/pnpm-lock.yaml": false,
|
||||||
"**/next-env.d.ts": true,
|
"**/next-env.d.ts": false,
|
||||||
"**/postcss.config.cjs": true,
|
"**/postcss.config.cjs": false,
|
||||||
"**/prettier.config.js": true,
|
"**/prettier.config.js": false,
|
||||||
"**/README.md": true,
|
"**/README.md": false,
|
||||||
"**/next.config.js": true,
|
"**/next.config.js": false,
|
||||||
"**/tailwind.config.ts": true,
|
"**/tailwind.config.ts": false,
|
||||||
"**/drizzle.config.ts": true,
|
"**/drizzle.config.ts": false,
|
||||||
"**/migrate.ts": true,
|
"**/migrate.ts": false,
|
||||||
"**/.env.example": true
|
"**/.env.example": false
|
||||||
},
|
},
|
||||||
// Neovim
|
// Neovim
|
||||||
"extensions.experimental.affinity": {
|
"extensions.experimental.affinity": {
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
"animations.Smooth-Mode": true,
|
"animations.Smooth-Mode": true,
|
||||||
"animations.Install-Method": "Apc Customize UI++",
|
"animations.Install-Method": "Apc Customize UI++",
|
||||||
"apc.imports": [
|
"apc.imports": [
|
||||||
"file:///home/matt/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.1/dist/updateHandler.js"
|
"file:///home/matt/.vscode-oss/extensions/brandonkirbyson.vscode-animations-2.0.1/dist/updateHandler.js"
|
||||||
],
|
],
|
||||||
// Language specific
|
// Language specific
|
||||||
"markdown.preview.scrollEditorWithPreview": true,
|
"markdown.preview.scrollEditorWithPreview": true,
|
||||||
|
|
10
.config/fish/functions/cdzc.fish
Normal file
10
.config/fish/functions/cdzc.fish
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
function cdzc --description 'Open directories from zoxide in vscode'
|
||||||
|
set selected_dir (zi)
|
||||||
|
|
||||||
|
if test -n "$selected_dir"
|
||||||
|
cd "$selected_dir"
|
||||||
|
codium -r .
|
||||||
|
else
|
||||||
|
commandline -f repaint
|
||||||
|
end
|
||||||
|
end
|
|
@ -109,7 +109,7 @@
|
||||||
"nvim-various-textobjs": { "branch": "main", "commit": "ca9e6f290c25f6a3168c5dd64b9ef0a8000263d9" },
|
"nvim-various-textobjs": { "branch": "main", "commit": "ca9e6f290c25f6a3168c5dd64b9ef0a8000263d9" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "140edfcf25093e8b321d13e154cbce89ee868ca0" },
|
"nvim-web-devicons": { "branch": "master", "commit": "140edfcf25093e8b321d13e154cbce89ee868ca0" },
|
||||||
"nvim_context_vt": { "branch": "master", "commit": "8f7b6b46292e0819290b0d368abc3366b8a163fc" },
|
"nvim_context_vt": { "branch": "master", "commit": "8f7b6b46292e0819290b0d368abc3366b8a163fc" },
|
||||||
"octo.nvim": { "branch": "master", "commit": "613d73a4b00c365f5a9744fc7e9549cd646291fe" },
|
"octo.nvim": { "branch": "master", "commit": "5a04268e54c3f538702ef4f03f635d69c569d23e" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "dd432e76d01eda08b8658415588d011009478469" },
|
"oil.nvim": { "branch": "master", "commit": "dd432e76d01eda08b8658415588d011009478469" },
|
||||||
"openingh.nvim": { "branch": "main", "commit": "5c9e851d7c26fdb236dfea8866b71fefe7ddeffc" },
|
"openingh.nvim": { "branch": "main", "commit": "5c9e851d7c26fdb236dfea8866b71fefe7ddeffc" },
|
||||||
"outline.nvim": { "branch": "main", "commit": "4ad4e8e2b9c797d68774b0d88f91c92183975639" },
|
"outline.nvim": { "branch": "main", "commit": "4ad4e8e2b9c797d68774b0d88f91c92183975639" },
|
||||||
|
@ -157,6 +157,7 @@
|
||||||
"urlview.nvim": { "branch": "main", "commit": "7d622e11adbc2cac5bba62345ade9b6672d564a4" },
|
"urlview.nvim": { "branch": "main", "commit": "7d622e11adbc2cac5bba62345ade9b6672d564a4" },
|
||||||
"venv-selector.nvim": { "branch": "main", "commit": "79709f8ad99ac2082d99a713985f3da0c924f4a2" },
|
"venv-selector.nvim": { "branch": "main", "commit": "79709f8ad99ac2082d99a713985f3da0c924f4a2" },
|
||||||
"vim-be-good": { "branch": "master", "commit": "c290810728a4f75e334b07dc0f3a4cdea908d351" },
|
"vim-be-good": { "branch": "master", "commit": "c290810728a4f75e334b07dc0f3a4cdea908d351" },
|
||||||
|
"vim-carbon-now-sh": { "branch": "master", "commit": "31a18d26fc27e7bd5786da092ed886273b4cf639" },
|
||||||
"vim-dadbod": { "branch": "master", "commit": "738cfc2ea6a1510fe23cba9006fef9291be70f7b" },
|
"vim-dadbod": { "branch": "master", "commit": "738cfc2ea6a1510fe23cba9006fef9291be70f7b" },
|
||||||
"vim-dadbod-completion": { "branch": "master", "commit": "c920cb0ba3dff4b1b0ed373e1c0b3007dec696c2" },
|
"vim-dadbod-completion": { "branch": "master", "commit": "c920cb0ba3dff4b1b0ed373e1c0b3007dec696c2" },
|
||||||
"vim-dadbod-ui": { "branch": "master", "commit": "e99dcfd5162d9b9b4b24a5d035cf114315f1aeec" },
|
"vim-dadbod-ui": { "branch": "master", "commit": "e99dcfd5162d9b9b4b24a5d035cf114315f1aeec" },
|
||||||
|
|
|
@ -40,9 +40,9 @@ vim.o.spell = false
|
||||||
vim.notify = vscode.notify
|
vim.notify = vscode.notify
|
||||||
vim.g.clipboard = vim.g.vscode_clipboard
|
vim.g.clipboard = vim.g.vscode_clipboard
|
||||||
|
|
||||||
local function vscode_action(cmd)
|
local function vscode_action(cmd, opts)
|
||||||
return function()
|
return function()
|
||||||
vscode.action(cmd)
|
vscode.action(cmd, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -60,8 +60,9 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
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 in left sidebar
|
||||||
map("n", "<leader>e", vscode_action("workbench.view.explorer"))
|
map("n", "<leader>e", vscode_action("workbench.view.explorer"))
|
||||||
-- Open terminal
|
-- terminal
|
||||||
map("n", "<leader>ft", vscode_action("workbench.action.terminal.focus"))
|
map("n", [[<c-\>]], vscode_action("workbench.action.terminal.toggleTerminal"))
|
||||||
|
map("n", "<leader>fts", vscode_action("workbench.action.terminal.newWithCwd"))
|
||||||
-- close editor
|
-- close editor
|
||||||
map("n", "<leader>bd", vscode_action("workbench.action.closeActiveEditor"))
|
map("n", "<leader>bd", vscode_action("workbench.action.closeActiveEditor"))
|
||||||
-- breakpoints
|
-- breakpoints
|
||||||
|
@ -70,7 +71,7 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
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
|
-- explorer
|
||||||
map("n", "h", vscode_action("toggleexcludedfiles.toggle"))
|
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"))
|
||||||
|
@ -84,6 +85,17 @@ vim.api.nvim_create_autocmd("User", {
|
||||||
map("n", "<leader>cR", vscode_action("editor.action.refactor"))
|
map("n", "<leader>cR", vscode_action("editor.action.refactor"))
|
||||||
-- markdown preview
|
-- markdown preview
|
||||||
map("n", "<leader>cp", vscode_action("markdown.showPreviewToSide"))
|
map("n", "<leader>cp", vscode_action("markdown.showPreviewToSide"))
|
||||||
|
-- project manager
|
||||||
|
map("n", "<leader>fp", vscode_action("projectManager.listProjects"))
|
||||||
|
-- zoxide
|
||||||
|
map(
|
||||||
|
"n",
|
||||||
|
"<leader>fz",
|
||||||
|
vscode_action(
|
||||||
|
"terminalCommandKeys.run",
|
||||||
|
{ args = { cmd = "cdzc", newTerminal = false, saveAllFiles = false, showTerminal = true, focus = true } }
|
||||||
|
)
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/1.5.1/schema.json",
|
"$schema": "https://biomejs.dev/schemas/1.5.2/schema.json",
|
||||||
"organizeImports": {
|
"organizeImports": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue