mirror of
https://github.com/sadan4/nvim.git
synced 2025-06-08 12:53:02 -04:00
add vscode split maps and home + end on home row
This commit is contained in:
parent
0578041126
commit
eed2d26842
3 changed files with 91 additions and 9 deletions
15
lua/generateVscodeJson.mjs
Executable file
15
lua/generateVscodeJson.mjs
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env node
|
||||
const keys = "lkjhcq34erpo095\\fud";
|
||||
|
||||
/**
|
||||
* @param key {string}
|
||||
*/
|
||||
const makeKeymapping = (key) => {
|
||||
return {
|
||||
key: `ctrl+shift+alt+${key.toLowerCase()}`,
|
||||
command: "vscode-neovim.send",
|
||||
when: "editorTextFocus && neovim.mode !== insert",
|
||||
args: `<M-C-S-${key.toUpperCase()}>`
|
||||
}
|
||||
}
|
||||
console.log(JSON.stringify(keys.split("").map(makeKeymapping)))
|
Loading…
Add table
Add a link
Reference in a new issue