feat(vscode): make use of vscode builtin terminal (#4392)
## Description <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> make use of vscode builtin terminal **I don't know how to properly handle cwd so it's implemented as a simple toggle** ## Related Issue(s) <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> #4280 ## Checklist - [X] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
@ -33,11 +33,15 @@ vim.api.nvim_create_autocmd("User", {
|
|||||||
pattern = "LazyVimKeymapsDefaults",
|
pattern = "LazyVimKeymapsDefaults",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.keymap.set("n", "<leader><space>", "<cmd>Find<cr>")
|
vim.keymap.set("n", "<leader><space>", "<cmd>Find<cr>")
|
||||||
vim.keymap.set("n", "<leader>/", [[<cmd>call VSCodeNotify('workbench.action.findInFiles')<cr>]])
|
vim.keymap.set("n", "<leader>/", [[<cmd>lua require('vscode').action('workbench.action.findInFiles')<cr>]])
|
||||||
vim.keymap.set("n", "<leader>ss", [[<cmd>call VSCodeNotify('workbench.action.gotoSymbol')<cr>]])
|
vim.keymap.set("n", "<leader>ss", [[<cmd>lua require('vscode').action('workbench.action.gotoSymbol')<cr>]])
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function LazyVim.terminal()
|
||||||
|
require("vscode").action("workbench.action.terminal.toggleTerminal")
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
|
Reference in New Issue
Block a user