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