Created
June 30, 2020 16:13
-
-
Save lamdor/e8ddefc81854bf7381b8367106332231 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// make the editor font look nice | |
"editor.fontSize": 18, | |
"editor.fontFamily": "Monaco, 'Courier New', monospace", | |
// format on pasting and saving | |
"editor.formatOnPaste": true, | |
"editor.formatOnSave": true, | |
// save files automatically | |
"files.autoSave": "afterDelay", | |
// delete trailing whitespace | |
"files.trimTrailingWhitespace": true, | |
// autofetch every 3 minutes | |
"git.autofetch": true, | |
"git.autofetchPeriod": 180, | |
// make gitlens not so noisy | |
"gitlens.currentLine.enabled": false, | |
"gitlens.hovers.currentLine.over": "line", | |
"gitlens.statusBar.enabled": false, | |
"gitlens.codeLens.enabled": false, | |
// use gopls | |
"go.useLanguageServer": true, | |
// by default start terminal in the file's working dir | |
"terminal.integrated.cwd": "${fileDirname}", | |
// large fonts for terminal | |
"terminal.integrated.fontSize": 15, | |
// use tmux for shell and start or attach a session with workspace folder name | |
"terminal.integrated.shell.osx": "/Users/luke/bin/tmux-attach-or-new", | |
"terminal.integrated.shellArgs.osx": [ | |
"${workspaceFolderBasename}" | |
], | |
// enable vim-easymotion https://github.com/easymotion/vim-easymotion | |
"vim.easymotion": true, | |
// highlight occurences on search | |
"vim.hlsearch": true, | |
// set leader to space | |
"vim.leader": "<Space>", | |
// vim keybindings | |
"vim.visualModeKeyBindingsNonRecursive": [ | |
// easy leader shortcuts for copy/paste from clipboard | |
{ | |
"before": [ | |
"<Leader>", | |
"y" | |
], | |
"after": ["\"", "+", "y"] | |
}, | |
{ | |
"before": [ | |
"<Leader>", | |
"p" | |
], | |
"after": ["\"", "+", "p"] | |
}, | |
], | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
// turn of search highlights | |
{ | |
"before": [ | |
"<Leader>", | |
"/" | |
], | |
"commands": [ | |
":noh" | |
] | |
}, | |
// easy leader shortcuts for copy/paste from clipboard | |
{ | |
"before": [ | |
"<Leader>", | |
"y" | |
], | |
"after": ["\"", "+", "y"] | |
}, | |
{ | |
"before": [ | |
"<Leader>", | |
"p" | |
], | |
"after": ["\"", "+", "p"] | |
}, | |
{ | |
"before": [ | |
"<Leader>", | |
"P" | |
], | |
"after": ["\"", "+", "P"] | |
}, | |
// goto symbol | |
{ | |
"before": [ | |
"<Leader>", | |
"o" | |
], | |
"commands": [ | |
"workbench.action.gotoSymbol" | |
] | |
}, | |
// bookmark current line (almost like global marks) | |
{ | |
"before": [ | |
"<Leader>", | |
"m" | |
], | |
"commands": [ | |
"bookmarks.toggle" | |
] | |
}, | |
// show current bookmarks | |
{ | |
"before": [ | |
"<Leader>", | |
"b" | |
], | |
"commands": [ | |
"bookmarks.list" | |
] | |
}, | |
// easier tab handling | |
{ | |
"before": [ | |
"<Leader>", | |
"t", | |
"t" | |
], | |
"commands": [ | |
":tabnew" | |
] | |
}, | |
{ | |
"before": [ | |
"<Leader>", | |
"t", | |
"n" | |
], | |
"commands": [ | |
":tabnext" | |
] | |
}, | |
{ | |
"before": [ | |
"<Leader>", | |
"t", | |
"p" | |
], | |
"commands": [ | |
":tabprev" | |
] | |
}, | |
{ | |
"before": [ | |
"<Leader>", | |
"t", | |
"o" | |
], | |
"commands": [ | |
":tabo" | |
] | |
}, | |
], | |
// enable vim-sneak https://github.com/justinmk/vim-sneak | |
"vim.sneak": true, | |
"vim.sneakUseIgnorecaseAndSmartcase": true, | |
// open new folders in a new window | |
"window.openFoldersInNewWindow": "on", | |
"workbench.colorCustomizations": { | |
// snazzy terminal colors | |
// The background is optional | |
"terminal.background": "#282a36", | |
"terminalCursor.background": "#282a36", | |
"terminalCursor.foreground": "#97979b", | |
"terminal.selectionBackground": "#97979b33", | |
"terminal.foreground": "#eff0eb", | |
"terminal.ansiBlack": "#282a36", | |
"terminal.ansiRed": "#ff5c57", | |
"terminal.ansiGreen": "#5af78e", | |
"terminal.ansiYellow": "#f3f99d", | |
"terminal.ansiBlue": "#57c7ff", | |
"terminal.ansiMagenta": "#ff6ac1", | |
"terminal.ansiCyan": "#9aedfe", | |
"terminal.ansiWhite": "#f1f1f0", | |
"terminal.ansiBrightBlack": "#686868", | |
"terminal.ansiBrightRed": "#ff5c57", | |
"terminal.ansiBrightGreen": "#5af78e", | |
"terminal.ansiBrightYellow": "#f3f99d", | |
"terminal.ansiBrightBlue": "#57c7ff", | |
"terminal.ansiBrightMagenta": "#ff6ac1", | |
"terminal.ansiBrightCyan": "#9aedfe", | |
"terminal.ansiBrightWhite": "#eff0eb" | |
}, | |
// use snazzy colors | |
"workbench.colorTheme": "Snazzy", | |
// put the sidebar on the right | |
"workbench.sideBar.location": "right", | |
// activity bar is always visible | |
"workbench.activityBar.visible": true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment