Files
zed-config/settings.json

237 lines
6.1 KiB
JSON

// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
// "base_keymap": "Atom", // default is VSCode, TODO: try to switch
"ssh_connections": [
{
"host": "rocm",
"projects": [
{
"paths": ["~/ntnu/ifield"]
},
{
"paths": ["~/ntnu/papers/"]
}
]
}
],
"telemetry": {
"metrics": false
},
"ui_font_size": 16,
"buffer_font_size": 17.0,
"theme": "Railscast",
"use_autoclose": false,
"ui_font_features": {
"liga": false,
"ss02": false,
"zero": false,
"calt": false // disable ligatures
},
"buffer_font_features": {
"liga": false,
"ss02": false,
"zero": false,
"calt": false // disable ligatures
// "font_family": "Cousine"
},
"use_system_path_prompts": false, // ctrl-o becomes way better, works remotely
"seed_search_query_from_cursor": "selection", // makes ctrl-f sane
"vertical_scroll_margin": 5,
"wrap_guides": [80],
"tabs": {
"activate_on_close": "left_neighbour", // default is 'history'
"file_icons": true
},
"indent_guides": {
// "coloring": "indent_aware"
// "coloring": "fixed"
"coloring": "disabled"
},
"project_panel": {
"indent_size": 10,
"indent_guides": {
"show": "never"
}
},
"git": {
// I like it, but it is too slow https://github.com/zed-industries/zed/issues/13547
"inline_blame": {
"enabled": false
}
},
"format_on_save": "off",
"preview_tabs": {
// Those annoying tabs that close themselves
"enabled": false
// "enable_preview_from_code_navigation": true,
// "enable_preview_from_file_finder": false
},
"node": {
"ignore_system_version": false
},
"auto_install_extensions": {
"railscast": true,
// "basher": true, // I want https://github.com/rburmorrison/shell.zed...
"cython": true,
"docker-compose": true,
"dockerfile": true,
"glsl": true,
"graphviz": true,
"harper": true,
"haskell": true,
"html": true,
"ini": true,
"java": true,
"jinja2": true,
"just": true,
"kotlin": true,
"latex": true,
"lua": true,
"make": true,
"neocmake": true,
"nix": true,
"proto": true,
"pylsp": true,
// "ruff": true,
"scala": true,
"toml": true,
"typos": true,
"typst": true,
// "vale": true,
"verilog": true,
"vhdl": true,
"zig": true
},
"languages": {
"JSONC": {
"format_on_save": "on"
},
"Jinja2": {
"tab_size": 2
},
// "Python": {
// "language_servers": ["pylsp", "!pyright", "!basedpyright"]
// // "enable_language_server": false,
// // "preferred_line_length": 120
// },
"Nix": {
"tab_size": 2
// "format_on_save": "off"
},
"Just": {
"formatter": {
"external": {
"command": "bash",
"arguments": [
"-c",
"t=\"$(mktemp)\"; cat >\"$t\"; just --unstable --fmt --justfile \"$t\"; cat \"$t\"; rm \"$t\";"
]
}
}
},
"Shell Script": {
"tab_size": 2,
"formatter": {
"external": {
"command": "shfmt",
"arguments": ["--indent=2", "--filename", "{buffer_path}"]
}
}
},
"TOML": {
// TODO: fix lsp config in zed
// "format_on_save": "off"
}
},
// https://zed.dev/docs/configuring-zed#lsp
"lsp": {
// "pyright": { "enabled": false },
// "basedpyright": { "enabled": false },
// "pylsp": {
// "plugins": {
// "autopep8": { "enabled": false }, // formatting
// "flake8": { "enabled": false }, // error checking
// "jedi_completion": { "enabled": true },
// "jedi_definition": { "enabled": true },
// "jedi_hover": { "enabled": true },
// "jedi_references": { "enabled": true },
// "jedi_signature_help": { "enabled": true },
// "jedi_symbols": { "enabled": true },
// "mccabe": { "enabled": false }, // complexity checking
// "preload": { "enabled": false }, // dunnolo
// "pycodestyle": { "enabled": false }, // style checking
// "pydocstyle": { "enabled": false }, // doc style checking
// "pyflakes": { "enabled": false }, // error linting
// "pylint": { "enabled": false }, // code linting
// "rope_autoimport": { "enabled": false }, // completions and linting
// "rope_completion": { "enabled": false }, // completions and linting
// "rope": { "enabled": false }, // completions and linting
// "yapf": { "enabled": false }
// }
// },
// "ruff": {
// "initialization_options": {
// "settings": {
// // "lineLength": 120,
// "showSyntaxErrors": true,
// "lint": {
// // "select": ["ALL"]
// // "ignore": ["D", "S101"]
// }
// }
// }
// },
"typos": {
"initialization_options": {
// bundled binary is dynamically linked
"path": "typos-lsp"
}
},
"taplo": {
// https://taplo.tamasfe.dev/configuration/formatter-options.html
// TODO: this causes error?
"settings": {
// "formatting": {
"align_comments": false
// }
}
},
"nil": {
"initialization_options": {
"formatting": {
"command": ["nixfmt"]
}
// bundled binary is dynamically linked
}
},
"harper": {
"initialization_options": {
"linters": {
// "SpellCheck": true,
// "SpelledNumbers": false,
// "AnA": true,
// "SentenceCapitalization": true,
// "UnclosedQuotes": true,
// "WrongQuotes": false,
"LongSentences": false
// "RepeatedWords": true,
// "Spaces": true,
// "Matcher": true,
// "CorrectNumberSuffix": true,
}
}
}
},
"file_types": {
"Shell Script": [".env.*", ".envrc"],
"CMake": ["CMakeLists.txt"]
}
}