178 lines
4.9 KiB
JSON
178 lines
4.9 KiB
JSON
{
|
|
/* VS Code editor settings. */
|
|
"editor.colorDecorators": false,
|
|
"editor.cursorBlinking": "smooth",
|
|
"editor.fontFamily": "Hasklig",
|
|
"editor.fontLigatures": true,
|
|
"editor.fontSize": 18,
|
|
"editor.minimap.maxColumn": 100,
|
|
"editor.multiCursorModifier": "ctrlCmd",
|
|
"editor.renderWhitespace": "boundary",
|
|
"editor.rulers": [
|
|
80,
|
|
100
|
|
],
|
|
"editor.suggestSelection": "first",
|
|
"editor.tabSize": 2,
|
|
"editor.wordWrapColumn": 100,
|
|
/* VS Code explorer settings. */
|
|
"explorer.confirmDelete": false,
|
|
"explorer.confirmDragAndDrop": false,
|
|
"explorer.sortOrder": "type",
|
|
/* VS Code extensions settings. */
|
|
"extensions.autoCheckUpdates": false,
|
|
"extensions.autoUpdate": false,
|
|
"extensions.ignoreRecommendations": true,
|
|
/* VS Code files settings. */
|
|
"files.associations": {
|
|
"**/i3/*": "i3",
|
|
"**/i3status/*": "i3",
|
|
"*.njk": "html",
|
|
"*.rasi": "plaintext",
|
|
"*.sql": "sql",
|
|
"*.yml": "yaml"
|
|
},
|
|
"files.eol": "\n",
|
|
"files.exclude": {
|
|
"**/.mypy_cache": true,
|
|
"**/.pytest_cache": true,
|
|
"**/__pycache__": true,
|
|
"**/node_modules": true,
|
|
"**/target": true
|
|
},
|
|
"files.insertFinalNewline": true,
|
|
"files.watcherExclude": {
|
|
"**/.git/objects/**": true,
|
|
"**/.git/subtree-cache/**": true,
|
|
"**/node_modules/*/**": true,
|
|
"**/target/**": true
|
|
},
|
|
/* VS Code HTML settings. */
|
|
"html.format.wrapLineLength": 80,
|
|
"html.validate.styles": false,
|
|
/* VS Code search settings. */
|
|
"search.showLineNumbers": true,
|
|
/* VS Code TypeScript settings. */
|
|
"typescript.disableAutomaticTypeAcquisition": true,
|
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
/* VS Code update settings. */
|
|
"update.mode": "none",
|
|
"update.showReleaseNotes": false,
|
|
/* VS Code window settings. */
|
|
"window.commandCenter": false,
|
|
"window.titleBarStyle": "custom",
|
|
/* VS Code workbench settings. */
|
|
"workbench.colorTheme": "Catppuccin Mocha",
|
|
"workbench.enableExperiments": false,
|
|
"workbench.iconTheme": "catppuccin-mocha",
|
|
"workbench.startupEditor": "none",
|
|
/* Extension settings. */
|
|
// Crates (ID: serayuzgur.crates).
|
|
"crates.compatibleDecorator": "✅ ${version}",
|
|
// Live Server (ID: ritwickdey.liveserver).
|
|
"liveServer.settings.donotShowInfoMsg": true,
|
|
"liveServer.settings.donotVerifyTags": true,
|
|
"liveServer.settings.root": "/public",
|
|
"liveServer.settings.wait": 1000,
|
|
// Nix (ID: jnoortheen.nix-ide)
|
|
"nix.enableLanguageServer": true,
|
|
"nix.serverPath": "nil",
|
|
"nix.serverSettings": {
|
|
"nil": {
|
|
"formatting": {
|
|
"command": ["nixfmt"]
|
|
}
|
|
}
|
|
},
|
|
// Nix Environment Selector (ID: arrterian.nix-env-selector)
|
|
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix",
|
|
// vscode-pdf (ID: tomoki1207.pdf)
|
|
"pdf-preview.default.scale": "page-fit",
|
|
// Rust Analyzer (ID: rust-lang.rust-analyzer)
|
|
"rust-analyzer.check.command": "clippy",
|
|
"rust-analyzer.inlayHints.chainingHints.enable": false,
|
|
// Stylelint (ID: stylelint.vscode-stylelint)
|
|
"stylelint.validate": [
|
|
"css",
|
|
"less",
|
|
"postcss",
|
|
"scss"
|
|
],
|
|
// SVG Preview (ID: jock.svg)
|
|
"svg.preview.mode": "svg",
|
|
// Typst LSP (ID: nvarner.typst-lsp)
|
|
"typst-lsp.experimentalFormatterMode": "on",
|
|
"typst-lsp.exportPdf": "never",
|
|
// Linter XO (ID: samverschueren.linter-xo).
|
|
"xo.format.enable": true,
|
|
"xo.validate": [
|
|
"astro",
|
|
"javascript",
|
|
"javascriptreact",
|
|
"mdx",
|
|
"typescript",
|
|
"typescriptreact"
|
|
],
|
|
/* Language-specific overrides. */
|
|
"[astro]": {
|
|
"editor.defaultFormatter": "samverschueren.linter-xo",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[html]": {
|
|
"editor.wordWrap": "on",
|
|
"editor.defaultFormatter": "vscode.html-language-features"
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "vscode.json-language-features"
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "vscode.json-language-features"
|
|
},
|
|
"[markdown]": {
|
|
"editor.rulers": [
|
|
65
|
|
],
|
|
"editor.wordWrap": "wordWrapColumn",
|
|
"editor.wordWrapColumn": 65
|
|
},
|
|
"[mdx]": {
|
|
"editor.defaultFormatter": "samverschueren.linter-xo",
|
|
"editor.formatOnSave": true,
|
|
"editor.wordWrap": "wordWrapColumn",
|
|
"editor.wordWrapColumn": 80
|
|
},
|
|
"[nix]": {
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[python]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.tabSize": 4
|
|
},
|
|
"[rust]": {
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer",
|
|
"editor.detectIndentation": false,
|
|
"editor.formatOnSave": true,
|
|
"editor.tabSize": 2,
|
|
"editor.wordWrap": "wordWrapColumn"
|
|
},
|
|
"[scss]": {
|
|
"editor.defaultFormatter": "stylelint.vscode-stylelint",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "samverschueren.linter-xo",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "samverschueren.linter-xo",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[typst]": {
|
|
"editor.defaultFormatter": "nvarner.typst-lsp",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[xml]": {
|
|
"editor.wordWrap": "on"
|
|
}
|
|
}
|