mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
update nvim vscode config
This commit is contained in:
parent
aad95a29a8
commit
ccff8a9728
2 changed files with 26 additions and 0 deletions
|
@ -242,3 +242,24 @@ end
|
||||||
function Navigation_right()
|
function Navigation_right()
|
||||||
VSCodeNotify("workbench.action.navigateRight")
|
VSCodeNotify("workbench.action.navigateRight")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Select_all()
|
||||||
|
VSCodeNotify("editor.action.selectAll")
|
||||||
|
end
|
||||||
|
|
||||||
|
function Copy_clipboard()
|
||||||
|
VSCodeNotify("editor.action.clipboardCopyAction")
|
||||||
|
end
|
||||||
|
|
||||||
|
function Paste_clipboard()
|
||||||
|
VSCodeNotify("editor.action.clipboardPasteAction")
|
||||||
|
end
|
||||||
|
|
||||||
|
function Save()
|
||||||
|
VSCodeNotify("workbench.action.files.save")
|
||||||
|
VSCodeNotify("workbench.action.files.saveAll")
|
||||||
|
end
|
||||||
|
|
||||||
|
function Close()
|
||||||
|
VSCodeNotify("workbench.action.closeActiveEditor")
|
||||||
|
end
|
||||||
|
|
|
@ -36,6 +36,11 @@ Map("n", "zI", Git_open_all_changes)
|
||||||
Map("n", "zy", Toggle_breakpoint)
|
Map("n", "zy", Toggle_breakpoint)
|
||||||
Map("n", "yr", Copy_relative_path)
|
Map("n", "yr", Copy_relative_path)
|
||||||
Map("n", "yR", Copy_path)
|
Map("n", "yR", Copy_path)
|
||||||
|
Map({ "n", "i", "v", "x" }, "<C-a>", Select_all)
|
||||||
|
Map({ "n", "v", "x" }, "y", Copy_clipboard)
|
||||||
|
Map({ "n", "v", "x" }, "p", Paste_clipboard)
|
||||||
|
Map({ "n", "v", "x" }, "<C-s>", Save)
|
||||||
|
Map({ "n" }, "q", Close)
|
||||||
|
|
||||||
Map("v", "gs", Codesnap)
|
Map("v", "gs", Codesnap)
|
||||||
Map("v", "<", Outdent_vis)
|
Map("v", "<", Outdent_vis)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue