mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(sidekick): add open terminal from sidekick
This commit is contained in:
parent
e8a1d8b628
commit
24291fa1b6
1 changed files with 20 additions and 0 deletions
|
|
@ -65,6 +65,26 @@ return {
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
cli = {
|
||||||
|
win = {
|
||||||
|
keys = {
|
||||||
|
open_terminal = {
|
||||||
|
"<C-/>",
|
||||||
|
function(_)
|
||||||
|
vim.cmd.stopinsert()
|
||||||
|
vim.schedule(function()
|
||||||
|
Snacks.terminal(nil, { cwd = LazyVim.root() })
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
mode = "nt",
|
||||||
|
desc = "Terminal (Root Dir)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue