add vscode split maps and home + end on home row

This commit is contained in:
sadan 2024-12-02 19:25:50 -05:00
parent 0578041126
commit eed2d26842
No known key found for this signature in database
3 changed files with 91 additions and 9 deletions

15
lua/generateVscodeJson.mjs Executable file
View 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)))