okay, for real this time

This commit is contained in:
mehbark 2023-10-31 19:06:45 -04:00
parent 1ab81455e3
commit d3d92528b9
2 changed files with 610 additions and 380 deletions

View file

@ -87,7 +87,7 @@ in
enableUpdateCheck = false; enableUpdateCheck = false;
# i prefer to let vscode manage stuff # i prefer to let vscode manage stuff
mutableExtensionsDir = true; mutableExtensionsDir = true;
userSettings = builtins.fromJSON (import ./vscode-settings.nix); userSettings = import ./vscode-settings.nix;
}; };
programs.neovim = { programs.neovim = {

View file

@ -1,382 +1,612 @@
builtins.fromJSON
'' ''
{ {
"workbench.editor.enablePreviewFromQuickOpen": false, "workbench.editor.enablePreviewFromQuickOpen": false,
"rust-analyzer.checkOnSave.command": "clippy", "rust-analyzer.checkOnSave.command": "clippy",
"workbench.editor.enablePreview": false, "workbench.editor.enablePreview": false,
"[rust]": { "[rust]": {
"editor.semanticHighlighting.enabled": true, "editor.semanticHighlighting.enabled": true,
"editor.defaultFormatter": "rust-lang.rust-analyzer" "editor.defaultFormatter": "rust-lang.rust-analyzer"
}, },
"[latex]": { "[latex]": {
"editor.defaultFormatter": "nickfode.latex-formatter" "editor.defaultFormatter": "nickfode.latex-formatter"
}, },
"[python]": { "[python]": {
"editor.formatOnType": true "editor.formatOnType": true
}, },
"[makefile]": { "[makefile]": {
"editor.insertSpaces": false "editor.insertSpaces": false
}, },
"[c]": { "[c]": {
"editor.insertSpaces": false, "editor.insertSpaces": false,
"editor.tabSize": 8, "editor.tabSize": 8,
"editor.useTabStops": true, "editor.useTabStops": true,
"editor.formatOnSave": false "editor.formatOnSave": false
}, },
"editor.renderWhitespace": "selection", "editor.renderWhitespace": "selection",
"[java]": { "[java]": {
"editor.suggest.snippetsPreventQuickSuggestions": false "editor.suggest.snippetsPreventQuickSuggestions": false
}, },
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.acceptSuggestionOnCommitCharacter": false, "editor.acceptSuggestionOnCommitCharacter": false,
"git.autofetch": true, "git.autofetch": true,
"files.eol": "\n", "files.eol": "\n",
"vim.handleKeys": { "vim.handleKeys": {
"<C-t>": false "<C-t>": false
}, },
"vim.leader": ";", "vim.leader": ";",
"vim.normalModeKeyBindings": [ "vim.normalModeKeyBindings": [
{ {
"before": ["j"], "before": [
"after": ["g", "j"] "j"
}, ],
{ "after": [
"before": ["k"], "g",
"after": ["g", "k"] "j"
}, ]
{ },
"before": ["0"], {
"after": ["^"] "before": [
}, "k"
{ ],
"before": ["t", "j"], "after": [
"commands": ["workbench.action.nextEditor"] "g",
}, "k"
{ ]
"before": ["t", "k"], },
"commands": ["workbench.action.previousEditor"] {
}, "before": [
{ "0"
"before": ["t", "w"], ],
"commands": ["workbench.action.closeActiveEditor"] "after": [
}, "^"
{ ]
"before": ["f", "f"], },
"commands": ["workbench.action.quickOpen"] {
}, "before": [
{ "t",
"before": ["f", "e"], "j"
"commands": ["workbench.action.showAllEditorsByMostRecentlyUsed"] ],
}, "commands": [
{ "workbench.action.nextEditor"
"before": ["f", "s"], ]
"commands": ["workbench.action.gotoSymbol"] },
}, {
{ "before": [
"before": ["<leader>", "z"], "t",
"commands": ["workbench.action.toggleZenMode"] "k"
}, ],
{ "commands": [
"before": ["<leader>", "w"], "workbench.action.previousEditor"
"commands": [":w"] ]
}, },
{ {
"before": ["<leader>", "q"], "before": [
"commands": [":q"] "t",
}, "w"
{ ],
"before": ["<leader>", "d"], "commands": [
"commands": ["editor.action.showHover"] "workbench.action.closeActiveEditor"
}, ]
{ },
"before": ["<leader>", "f"], {
"commands": ["editor.action.quickFix"] "before": [
}, "f",
{ "f"
"before": ["<leader>", "t"], ],
"commands": ["editor.action.peekTypeDefinition"] "commands": [
}, "workbench.action.quickOpen"
{ ]
"before": ["<leader>", "g"], },
"commands": ["editor.action.revealDefinition"] {
}, "before": [
{ "f",
"before": ["<leader>", "c"], "e"
"commands": ["rust-analyzer.run"] ],
}, "commands": [
{ "workbench.action.showAllEditorsByMostRecentlyUsed"
"before": ["<leader>", "r", "n"], ]
"commands": ["editor.action.rename"] },
}, {
{ "before": [
"before": ["<c-j>"], "f",
"commands": ["editor.action.marker.nextInFiles"] "s"
}, ],
{ "commands": [
"before": ["<c-k>"], "workbench.action.gotoSymbol"
"commands": ["editor.action.marker.prevInFiles"] ]
}, },
{ {
"before": ["<leader>", "p", "c"], "before": [
"commands": ["picat.run.document"] "<leader>",
}, "z"
// clojure ],
{ "commands": [
"before": ["<leader>", "s", "h"], "workbench.action.toggleZenMode"
"commands": ["paredit.slurpSexpBackward"] ]
}, },
{ {
"before": ["<leader>", "s", "l"], "before": [
"commands": ["paredit.slurpSexpForward"] "<leader>",
}, "w"
{ ],
"before": ["<leader>", "s", "w", "p"], "commands": [
"commands": ["paredit.wrapAroundParens"] ":w"
}, ]
{ },
"before": ["<leader>", "s", "w", "b"], {
"commands": ["paredit.wrapAroundSquare"] "before": [
}, "<leader>",
{ "q"
"before": ["<leader>", "s", "w", "c"], ],
"commands": ["paredit.wrapAroundCurly"] "commands": [
}, ":q"
{ ]
"before": ["<leader>", "s", "w", "p"], },
"commands": ["paredit.wrapAroundParens"] {
}, "before": [
{ "<leader>",
"before": ["<leader>", "b", "h"], "d"
"commands": ["paredit.barfSexpBackward"] ],
}, "commands": [
{ "editor.action.showHover"
"before": ["<leader>", "b", "l"], ]
"commands": ["paredit.barfSexpForward"] },
}, {
{ "before": [
"before": ["<leader>", "s", "t"], "<leader>",
"commands": ["paredit.transpose"] "f"
}, ],
{ "commands": [
"before": ["<leader>", "s", "t"], "editor.action.quickFix"
"commands": ["paredit.transpose"] ]
}, },
{ {
"before": ["<leader>", "s", "e"], "before": [
"commands": ["calva.evaluateCurrentTopLevelForm"] "<leader>",
}, "t"
{ ],
"before": ["<leader>", "s", "s"], "commands": [
"commands": ["calva.evaluateSelection"] "editor.action.peekTypeDefinition"
}, ]
{ },
"before": ["<leader>", "s", "f"], {
"commands": ["calva.sendCurrentFormToOutputWindow"] "before": [
}, "<leader>",
{ "g"
"before": ["<leader>", "s", "o"], ],
"commands": ["calva.showOutputWindow"] "commands": [
}, "editor.action.revealDefinition"
// idris ]
{ },
"before": ["<leader>", "i", "l"], {
"commands": ["idris.make-lemma"] "before": [
}, "<leader>",
{ "c"
"before": ["<leader>", "i", "f", "h"], ],
"commands": ["idris.proof-search"] "commands": [
}, "rust-analyzer.run"
{ ]
"before": ["<leader>", "i", "c", "s"], },
"commands": ["idris.case-split"] {
}, "before": [
{ "<leader>",
"before": ["<leader>", "i", "t", "c"], "r",
"commands": ["idris.typecheck"] "n"
}, ],
{ "commands": [
"before": ["<leader>", "i", "m"], "editor.action.rename"
"commands": ["idris.add-clause"] ]
} },
], {
"vim.useSystemClipboard": true, "before": [
"vim.easymotion": true, "<c-j>"
"vim.highlightedyank.enable": true, ],
"vim.smartRelativeLine": true, "commands": [
"[jsonc]": { "editor.action.marker.nextInFiles"
"editor.defaultFormatter": "esbenp.prettier-vscode" ]
}, },
"editor.fontFamily": "JetBrainsMono Nerd Font", {
// "editor.fontFamily": "IntelOne Mono", "before": [
// "editor.fontFamily": "CMU Serif", "<c-k>"
// "editor.fontFamily": "JuliaMono", ],
"editor.fontLigatures": true, "commands": [
"git.confirmSync": false, "editor.action.marker.prevInFiles"
"terminal.integrated.scrollback": 100000, ]
"go.useLanguageServer": true, },
"[javascript]": { {
"editor.defaultFormatter": null, "before": [
"editor.formatOnSave": true "<leader>",
}, "p",
"terminal.integrated.commandsToSkipShell": ["-workbench.action.quickOpen"], "c"
"[typescript]": { ],
"editor.formatOnSave": true, "commands": [
"editor.defaultFormatter": "denoland.vscode-deno" "picat.run.document"
}, ]
"[json]": { },
"editor.defaultFormatter": "esbenp.prettier-vscode" {
}, "before": [
"editor.rulers": [80, 100], "<leader>",
"git.enableSmartCommit": true, "s",
"typescript.updateImportsOnFileMove.enabled": "always", "h"
"[typescriptreact]": { ],
"editor.defaultFormatter": "esbenp.prettier-vscode" "commands": [
}, "paredit.slurpSexpBackward"
"[html]": { ]
"editor.defaultFormatter": "esbenp.prettier-vscode" },
}, {
"terminal.integrated.tabs.enabled": true, "before": [
"terminal.integrated.defaultProfile.linux": "fish", "<leader>",
//"workbench.preferredDarkColorTheme": "GitHub Dark", "s",
//"workbench.preferredLightColorTheme": "GitHub Light", "l"
"editor.tabSize": 4, ],
"editor.cursorStyle": "line", "commands": [
"editor.lineNumbers": "on", "paredit.slurpSexpForward"
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-", ]
"editor.wordWrap": "off", },
"window.restoreWindows": "none", {
"editor.quickSuggestions": { "before": [
"other": "on", "<leader>",
"comments": "off", "s",
"strings": "on" "w",
}, "p"
"window.autoDetectColorScheme": true, ],
"files.watcherExclude": { "commands": [
"**/.git/objects/**": true, "paredit.wrapAroundParens"
"**/.git/subtree-cache/**": true, ]
"**/node_modules/*/**": true, },
"**/.hg/store/**": true, {
"/target/**": true "before": [
}, "<leader>",
"editor.inlineSuggest.enabled": true, "s",
"github.copilot.enable": { "w",
"*": true, "b"
"yaml": true, ],
"plaintext": false, "commands": [
"markdown": false "paredit.wrapAroundSquare"
}, ]
"editor.bracketPairColorization.enabled": true, },
"security.workspace.trust.untrustedFiles": "open", {
"editor.inlayHints.enabled": "offUnlessPressed", "before": [
"rust-analyzer.lens.run": false, "<leader>",
"rust-analyzer.lens.debug": false, "s",
"rust-analyzer.lens.implementations": false, "w",
"editor.cursorSmoothCaretAnimation": "on", "c"
"editor.cursorBlinking": "solid", ],
"workbench.iconTheme": "gruvbox-material-icon-theme", "commands": [
"window.titleBarStyle": "custom", "paredit.wrapAroundCurly"
"workbench.layoutControl.enabled": true, ]
"workbench.layoutControl.type": "both", },
"files.insertFinalNewline": true, {
"editor.insertSpaces": true, "before": [
"oneDarkPro.italic": false, "<leader>",
"latex-workshop.view.pdf.viewer": "tab", "s",
"[handlebars]": { "w",
"editor.defaultFormatter": "esbenp.prettier-vscode" "p"
}, ],
"editor.fontSize": 16, "commands": [
"settingsSync.ignoredExtensions": [], "paredit.wrapAroundParens"
"syntax.highlightLanguages": [ ]
"c", },
"cpp", {
"python", "before": [
"typescript", "<leader>",
"typescriptreact", "b",
"javascript", "h"
"go", ],
"rust", "commands": [
"php", "paredit.barfSexpBackward"
"ruby", ]
"shellscript", },
"ocaml", {
"lua" "before": [
], "<leader>",
"editor.suggest.localityBonus": true, "b",
// "rust-analyzer.inlayHints.chainingHints.enable": false, "l"
// "rust-analyzer.inlayHints.parameterHints.enable": false, ],
// "rust-analyzer.inlayHints.typeHints.enable": false, "commands": [
"[css]": { "paredit.barfSexpForward"
"editor.defaultFormatter": "esbenp.prettier-vscode" ]
}, },
"[markdown]": { {
"editor.defaultFormatter": "esbenp.prettier-vscode", "before": [
"editor.formatOnSave": false "<leader>",
}, "s",
"prettier.arrowParens": "avoid", "t"
"prettier.tabWidth": 4, ],
"rust-analyzer.lens.enable": false, "commands": [
"workbench.startupEditor": "none", "paredit.transpose"
"workbench.editorAssociations": { ]
"*.jpg": "imagePreview.previewEditor" },
}, {
"gruvboxMaterial.italicComments": false, "before": [
"rust-analyzer.inlayHints.maxLength": null, "<leader>",
"rust-analyzer.debug.openDebugPane": true, "s",
"rust-analyzer.inlayHints.closureReturnTypeHints.enable": "always", "t"
"rust-analyzer.inlayHints.lifetimeElisionHints.enable": "always", ],
"rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": true, "commands": [
"rust-analyzer.inlayHints.reborrowHints.enable": "always", "paredit.transpose"
"rust-analyzer.checkOnSave.extraArgs": ["--", "-W", "clippy::pedantic"], ]
"editor.unicodeHighlight.invisibleCharacters": false, },
"remote.extensionKind": { {
"pub.name": ["ui"] "before": [
}, "<leader>",
"docker.commands.attach": "$${config:docker.dockerPath} exec -it $${containerId} $${shellCommand}", "s",
"C_Cpp.clang_format_fallbackStyle": "WebKit", "e"
"editor.stickyScroll.enabled": true, ],
"workbench.colorTheme": "One Dark Pro Darker", "commands": [
"files.associations": { "calva.evaluateCurrentTopLevelForm"
"*.h": "c", ]
"*.pl": "prolog" },
}, {
"editor.minimap.showSlider": "always", "before": [
"haskell.formattingProvider": "stylish-haskell", "<leader>",
"editor.minimap.enabled": false, "s",
"[haskell]": { "s"
"editor.defaultFormatter": "haskell.haskell" ],
}, "commands": [
"calva.highlight.matchedBracketStyle": {}, "calva.evaluateSelection"
"calva.paredit.defaultKeyMap": "original", ]
"editor.autoIndent": "advanced", },
"calva.prettyPrintingOptions": { {
"printEngine": "pprint", "before": [
"enabled": true, "<leader>",
"width": 120, "s",
"maxLength": 50 "f"
}, ],
"[javascriptreact]": { "commands": [
"editor.defaultFormatter": "esbenp.prettier-vscode" "calva.sendCurrentFormToOutputWindow"
}, ]
"errorLens.excludeBySource": ["eslint(eqeqeq)", "ts(2551)"], },
"terminal.integrated.fontSize": 15, {
"dafny.verificationTimeLimit": 3600, "before": [
"dafny.verificationVirtualCores": 0, "<leader>",
"editor.defaultFormatter": "denoland.vscode-deno", "s",
"haskell.manageHLS": "GHCup", "o"
"haskell.ghcupExecutablePath": "/home/mbk/.ghcup/bin/ghcup", ],
"haskell.plugin.tactics.config.auto_gas": 8, "commands": [
"markdown.editor.pasteUrlAsFormattedLink.enabled": "smart", "calva.showOutputWindow"
"ocaml.server.extendedHover": true, ]
"idris.warnPartial": true, },
"idris.numbersOfContinuousTypechecking": 50, {
"zig.zigPath": "", "before": [
"debug.internalConsoleOptions": "neverOpen", "<leader>",
"zig.zls.enabled": true, "i",
"zig.zls.path": "/home/mbk/.config/Code/User/globalStorage/ziglang.vscode-zig/zls_install/zls", "l"
"ruby.codeCompletion": "rcodetools", ],
"ruby.intellisense": "rubyLocate", "commands": [
"ruby.format": "prettier", "idris.make-lemma"
"window.commandCenter": false, ]
"editor.suggest.showStatusBar": true, },
"twind.debug": true {
"before": [
"<leader>",
"i",
"f",
"h"
],
"commands": [
"idris.proof-search"
]
},
{
"before": [
"<leader>",
"i",
"c",
"s"
],
"commands": [
"idris.case-split"
]
},
{
"before": [
"<leader>",
"i",
"t",
"c"
],
"commands": [
"idris.typecheck"
]
},
{
"before": [
"<leader>",
"i",
"m"
],
"commands": [
"idris.add-clause"
]
}
],
"vim.useSystemClipboard": true,
"vim.easymotion": true,
"vim.highlightedyank.enable": true,
"vim.smartRelativeLine": true,
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontFamily": "JetBrainsMono Nerd Font",
"editor.fontLigatures": true,
"git.confirmSync": false,
"terminal.integrated.scrollback": 100000,
"go.useLanguageServer": true,
"[javascript]": {
"editor.defaultFormatter": null,
"editor.formatOnSave": true
},
"terminal.integrated.commandsToSkipShell": [
"-workbench.action.quickOpen"
],
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.rulers": [
80,
100
],
"git.enableSmartCommit": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"terminal.integrated.tabs.enabled": true,
"terminal.integrated.defaultProfile.linux": "fish",
"editor.tabSize": 4,
"editor.cursorStyle": "line",
"editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,;<>~!@#$$%^&*|+=[]{}`?-",
"editor.wordWrap": "off",
"window.restoreWindows": "none",
"editor.quickSuggestions": {
"other": "on",
"comments": "off",
"strings": "on"
},
"window.autoDetectColorScheme": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hg/store/**": true,
"/target/**": true
},
"editor.inlineSuggest.enabled": true,
"github.copilot.enable": {
"*": true,
"yaml": true,
"plaintext": false,
"markdown": false
},
"editor.bracketPairColorization.enabled": true,
"security.workspace.trust.untrustedFiles": "open",
"editor.inlayHints.enabled": "offUnlessPressed",
"rust-analyzer.lens.run": false,
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.implementations": false,
"editor.cursorSmoothCaretAnimation": "on",
"editor.cursorBlinking": "solid",
"workbench.iconTheme": "gruvbox-material-icon-theme",
"window.titleBarStyle": "custom",
"workbench.layoutControl.enabled": true,
"workbench.layoutControl.type": "both",
"files.insertFinalNewline": true,
"editor.insertSpaces": true,
"oneDarkPro.italic": false,
"latex-workshop.view.pdf.viewer": "tab",
"[handlebars]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontSize": 16,
"settingsSync.ignoredExtensions": [],
"syntax.highlightLanguages": [
"c",
"cpp",
"python",
"typescript",
"typescriptreact",
"javascript",
"go",
"rust",
"php",
"ruby",
"shellscript",
"ocaml",
"lua"
],
"editor.suggest.localityBonus": true,
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": false
},
"prettier.arrowParens": "avoid",
"prettier.tabWidth": 4,
"rust-analyzer.lens.enable": false,
"workbench.startupEditor": "none",
"workbench.editorAssociations": {
"*.jpg": "imagePreview.previewEditor"
},
"gruvboxMaterial.italicComments": false,
"rust-analyzer.inlayHints.maxLength": null,
"rust-analyzer.debug.openDebugPane": true,
"rust-analyzer.inlayHints.closureReturnTypeHints.enable": "always",
"rust-analyzer.inlayHints.lifetimeElisionHints.enable": "always",
"rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": true,
"rust-analyzer.inlayHints.reborrowHints.enable": "always",
"rust-analyzer.checkOnSave.extraArgs": [
"--",
"-W",
"clippy::pedantic"
],
"editor.unicodeHighlight.invisibleCharacters": false,
"remote.extensionKind": {
"pub.name": [
"ui"
]
},
"docker.commands.attach": "$${config:docker.dockerPath} exec -it $${containerId} $${shellCommand}",
"C_Cpp.clang_format_fallbackStyle": "WebKit",
"editor.stickyScroll.enabled": true,
"workbench.colorTheme": "One Dark Pro Darker",
"files.associations": {
"*.h": "c",
"*.pl": "prolog"
},
"editor.minimap.showSlider": "always",
"haskell.formattingProvider": "stylish-haskell",
"editor.minimap.enabled": false,
"[haskell]": {
"editor.defaultFormatter": "haskell.haskell"
},
"calva.highlight.matchedBracketStyle": {},
"calva.paredit.defaultKeyMap": "original",
"editor.autoIndent": "advanced",
"calva.prettyPrintingOptions": {
"printEngine": "pprint",
"enabled": true,
"width": 120,
"maxLength": 50
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"errorLens.excludeBySource": [
"eslint(eqeqeq)",
"ts(2551)"
],
"terminal.integrated.fontSize": 15,
"dafny.verificationTimeLimit": 3600,
"dafny.verificationVirtualCores": 0,
"editor.defaultFormatter": "denoland.vscode-deno",
"haskell.manageHLS": "GHCup",
"haskell.ghcupExecutablePath": "/home/mbk/.ghcup/bin/ghcup",
"haskell.plugin.tactics.config.auto_gas": 8,
"markdown.editor.pasteUrlAsFormattedLink.enabled": "smart",
"ocaml.server.extendedHover": true,
"idris.warnPartial": true,
"idris.numbersOfContinuousTypechecking": 50,
"zig.zigPath": "",
"debug.internalConsoleOptions": "neverOpen",
"zig.zls.enabled": true,
"zig.zls.path": "/home/mbk/.config/Code/User/globalStorage/ziglang.vscode-zig/zls_install/zls",
"ruby.codeCompletion": "rcodetools",
"ruby.intellisense": "rubyLocate",
"ruby.format": "prettier",
"window.commandCenter": false,
"editor.suggest.showStatusBar": true,
"twind.debug": true
} }
'' ''