Skip to content

Instantly share code, notes, and snippets.

@pavel-kirienko
Last active March 9, 2026 14:42
Show Gist options
  • Select an option

  • Save pavel-kirienko/24d43ac4498514098b5af12117656f67 to your computer and use it in GitHub Desktop.

Select an option

Save pavel-kirienko/24d43ac4498514098b5af12117656f67 to your computer and use it in GitHub Desktop.
Zed config and LaTeX Unicode snippets that go into `~.config/zed/snippets/snippets.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 (cmd-shift-p / ctrl-shift-p)
{
"session": {
"trust_all_worktrees": true,
},
"edit_predictions": {
"provider": "copilot",
},
"buffer_line_height": "standard",
"semantic_tokens": "combined",
"global_lsp_settings": {
"semantic_token_rules": [
{
"token_type": "parameter",
"foreground_color": "#8855ff",
},
{
"token_type": "variable",
"token_modifiers": ["readonly"],
"foreground_color": "#8be9fd",
},
{
"token_type": "variable",
"foreground_color": "#f1fa8c",
},
{
"token_type": "property",
"foreground_color": "#00aaff",
},
{
"token_type": "typeParameter",
"foreground_color": "#bd93f9",
},
],
},
"languages": {
"C": {
"semantic_tokens": "combined",
"formatter": {
"external": {
"command": "clang-format",
"arguments": ["--assume-filename", "{buffer_path}"],
},
},
"format_on_save": "on",
},
"C++": {
"semantic_tokens": "combined",
"formatter": {
"external": {
"command": "clang-format",
"arguments": ["--assume-filename", "{buffer_path}"],
},
},
"format_on_save": "on",
},
"CMake": {
"preferred_line_length": 120,
},
},
"preferred_line_length": 120,
"wrap_guides": [120],
"fast_scroll_sensitivity": 8.0,
"agent": {
"tool_permissions": {
"default": "allow",
},
"message_editor_min_lines": 5,
"use_modifier_to_send": true,
"notify_when_agent_waiting": "all_screens",
"model_parameters": [],
},
"autosave": "on_focus_change",
"telemetry": {
"diagnostics": false,
"metrics": false,
},
"buffer_font_family": "JetBrains Mono",
"buffer_font_features": {
"calt": true,
"liga": true,
"dlig": true,
},
"buffer_font_size": 13.0,
"theme_overrides": {
"Ayu Dark": {
"editor.background": "#000000",
},
},
"experimental.theme_overrides": {
"editor.background": "#000000",
"editor.wrap_guide": "#222",
"syntax": {
"constant.comment.todo": { "color": "#f00" },
"string.comment.info": { "color": "#f00" },
"keyword.comment.warn": { "color": "#f00" },
"property.comment.error": { "color": "#f00" },
},
},
"theme": {
"mode": "system",
"light": "Ayu Light",
"dark": "Ayu Dark",
},
"sticky_scroll": {
"enabled": true,
},
"scrollbar": {
"axes": {
"horizontal": false,
},
},
"minimap": {
"show": "auto", // When to show (auto, always, never)
"display_in": "all_editors", // Where to show (active_editor, all_editors)
"thumb": "always", // When to show thumb (always, hover)
"thumb_border": "left_open", // Thumb border (left_open, right_open, full, none)
"max_width_columns": 80, // Maximum width of minimap
"current_line_highlight": null, // Highlight current line (null, line, gutter)
},
}
{
"Greek alpha": {
"prefix": "\\alpha",
"body": [
"α"
],
"description": "Insert α"
},
"Greek beta": {
"prefix": "\\beta",
"body": [
"β"
],
"description": "Insert β"
},
"Greek gamma": {
"prefix": "\\gamma",
"body": [
"γ"
],
"description": "Insert γ"
},
"Greek delta": {
"prefix": "\\delta",
"body": [
"δ"
],
"description": "Insert δ"
},
"Greek epsilon": {
"prefix": "\\epsilon",
"body": [
"ε"
],
"description": "Insert ε"
},
"Greek zeta": {
"prefix": "\\zeta",
"body": [
"ζ"
],
"description": "Insert ζ"
},
"Greek eta": {
"prefix": "\\eta",
"body": [
"η"
],
"description": "Insert η"
},
"Greek theta": {
"prefix": "\\theta",
"body": [
"θ"
],
"description": "Insert θ"
},
"Greek iota": {
"prefix": "\\iota",
"body": [
"ι"
],
"description": "Insert ι"
},
"Greek kappa": {
"prefix": "\\kappa",
"body": [
"κ"
],
"description": "Insert κ"
},
"Greek lambda": {
"prefix": "\\lambda",
"body": [
"λ"
],
"description": "Insert λ"
},
"Greek mu": {
"prefix": "\\mu",
"body": [
"μ"
],
"description": "Insert μ"
},
"Greek nu": {
"prefix": "\\nu",
"body": [
"ν"
],
"description": "Insert ν"
},
"Greek xi": {
"prefix": "\\xi",
"body": [
"ξ"
],
"description": "Insert ξ"
},
"Greek omicron": {
"prefix": "\\omicron",
"body": [
"ο"
],
"description": "Insert ο"
},
"Greek pi": {
"prefix": "\\pi",
"body": [
"π"
],
"description": "Insert π"
},
"Greek rho": {
"prefix": "\\rho",
"body": [
"ρ"
],
"description": "Insert ρ"
},
"Greek sigma": {
"prefix": "\\sigma",
"body": [
"σ"
],
"description": "Insert σ"
},
"Greek tau": {
"prefix": "\\tau",
"body": [
"τ"
],
"description": "Insert τ"
},
"Greek upsilon": {
"prefix": "\\upsilon",
"body": [
"υ"
],
"description": "Insert υ"
},
"Greek phi": {
"prefix": "\\phi",
"body": [
"φ"
],
"description": "Insert φ"
},
"Greek chi": {
"prefix": "\\chi",
"body": [
"χ"
],
"description": "Insert χ"
},
"Greek psi": {
"prefix": "\\psi",
"body": [
"ψ"
],
"description": "Insert ψ"
},
"Greek omega": {
"prefix": "\\omega",
"body": [
"ω"
],
"description": "Insert ω"
},
"Greek varepsilon": {
"prefix": "\\varepsilon",
"body": [
"ϵ"
],
"description": "Insert ϵ"
},
"Greek vartheta": {
"prefix": "\\vartheta",
"body": [
"ϑ"
],
"description": "Insert ϑ"
},
"Greek varpi": {
"prefix": "\\varpi",
"body": [
"ϖ"
],
"description": "Insert ϖ"
},
"Greek varrho": {
"prefix": "\\varrho",
"body": [
"ϱ"
],
"description": "Insert ϱ"
},
"Greek varsigma": {
"prefix": "\\varsigma",
"body": [
"ς"
],
"description": "Insert ς"
},
"Greek varphi": {
"prefix": "\\varphi",
"body": [
"ϕ"
],
"description": "Insert ϕ"
},
"Greek Gamma": {
"prefix": "\\Gamma",
"body": [
"Γ"
],
"description": "Insert Γ"
},
"Greek Delta": {
"prefix": "\\Delta",
"body": [
"Δ"
],
"description": "Insert Δ"
},
"Greek Theta": {
"prefix": "\\Theta",
"body": [
"Θ"
],
"description": "Insert Θ"
},
"Greek Lambda": {
"prefix": "\\Lambda",
"body": [
"Λ"
],
"description": "Insert Λ"
},
"Greek Xi": {
"prefix": "\\Xi",
"body": [
"Ξ"
],
"description": "Insert Ξ"
},
"Greek Pi": {
"prefix": "\\Pi",
"body": [
"Π"
],
"description": "Insert Π"
},
"Greek Sigma": {
"prefix": "\\Sigma",
"body": [
"Σ"
],
"description": "Insert Σ"
},
"Greek Upsilon": {
"prefix": "\\Upsilon",
"body": [
"Υ"
],
"description": "Insert Υ"
},
"Greek Phi": {
"prefix": "\\Phi",
"body": [
"Φ"
],
"description": "Insert Φ"
},
"Greek Psi": {
"prefix": "\\Psi",
"body": [
"Ψ"
],
"description": "Insert Ψ"
},
"Greek Omega": {
"prefix": "\\Omega",
"body": [
"Ω"
],
"description": "Insert Ω"
},
"Math plus-minus": {
"prefix": "\\pm",
"body": [
"±"
],
"description": "Insert ±"
},
"Math minus-plus": {
"prefix": "\\mp",
"body": [
"∓"
],
"description": "Insert ∓"
},
"Math times": {
"prefix": "\\times",
"body": [
"×"
],
"description": "Insert ×"
},
"Math divide": {
"prefix": "\\div",
"body": [
"÷"
],
"description": "Insert ÷"
},
"Math cdot": {
"prefix": "\\cdot",
"body": [
"·"
],
"description": "Insert ·"
},
"Math ast": {
"prefix": "\\ast",
"body": [
"∗"
],
"description": "Insert ∗"
},
"Math star": {
"prefix": "\\star",
"body": [
"⋆"
],
"description": "Insert ⋆"
},
"Math circ": {
"prefix": "\\circ",
"body": [
"∘"
],
"description": "Insert ∘"
},
"Math bullet": {
"prefix": "\\bullet",
"body": [
"•"
],
"description": "Insert •"
},
"Math oplus": {
"prefix": "\\oplus",
"body": [
"⊕"
],
"description": "Insert ⊕"
},
"Math ominus": {
"prefix": "\\ominus",
"body": [
"⊖"
],
"description": "Insert ⊖"
},
"Math otimes": {
"prefix": "\\otimes",
"body": [
"⊗"
],
"description": "Insert ⊗"
},
"Math oslash": {
"prefix": "\\oslash",
"body": [
"⊘"
],
"description": "Insert ⊘"
},
"Math odot": {
"prefix": "\\odot",
"body": [
"⊙"
],
"description": "Insert ⊙"
},
"Math dagger": {
"prefix": "\\dagger",
"body": [
"†"
],
"description": "Insert †"
},
"Math ddagger": {
"prefix": "\\ddagger",
"body": [
"‡"
],
"description": "Insert ‡"
},
"Math neq": {
"prefix": "\\neq",
"body": [
"≠"
],
"description": "Insert ≠"
},
"Math equiv": {
"prefix": "\\equiv",
"body": [
"≡"
],
"description": "Insert ≡"
},
"Math approx": {
"prefix": "\\approx",
"body": [
"≈"
],
"description": "Insert ≈"
},
"Math sim": {
"prefix": "\\sim",
"body": [
"∼"
],
"description": "Insert ∼"
},
"Math simeq": {
"prefix": "\\simeq",
"body": [
"≃"
],
"description": "Insert ≃"
},
"Math cong": {
"prefix": "\\cong",
"body": [
"≅"
],
"description": "Insert ≅"
},
"Math propto": {
"prefix": "\\propto",
"body": [
"∝"
],
"description": "Insert ∝"
},
"Math leq": {
"prefix": "\\leq",
"body": [
"≤"
],
"description": "Insert ≤"
},
"Math le": {
"prefix": "\\le",
"body": [
"≤"
],
"description": "Insert ≤"
},
"Math geq": {
"prefix": "\\geq",
"body": [
"≥"
],
"description": "Insert ≥"
},
"Math ge": {
"prefix": "\\ge",
"body": [
"≥"
],
"description": "Insert ≥"
},
"Math ll": {
"prefix": "\\ll",
"body": [
"≪"
],
"description": "Insert ≪"
},
"Math gg": {
"prefix": "\\gg",
"body": [
"≫"
],
"description": "Insert ≫"
},
"Math prec": {
"prefix": "\\prec",
"body": [
"≺"
],
"description": "Insert ≺"
},
"Math preceq": {
"prefix": "\\preceq",
"body": [
"≼"
],
"description": "Insert ≼"
},
"Math succ": {
"prefix": "\\succ",
"body": [
"≻"
],
"description": "Insert ≻"
},
"Math succeq": {
"prefix": "\\succeq",
"body": [
"≽"
],
"description": "Insert ≽"
},
"Math subset": {
"prefix": "\\subset",
"body": [
"⊂"
],
"description": "Insert ⊂"
},
"Math subseteq": {
"prefix": "\\subseteq",
"body": [
"⊆"
],
"description": "Insert ⊆"
},
"Math supset": {
"prefix": "\\supset",
"body": [
"⊃"
],
"description": "Insert ⊃"
},
"Math supseteq": {
"prefix": "\\supseteq",
"body": [
"⊇"
],
"description": "Insert ⊇"
},
"Math in": {
"prefix": "\\in",
"body": [
"∈"
],
"description": "Insert ∈"
},
"Math notin": {
"prefix": "\\notin",
"body": [
"∉"
],
"description": "Insert ∉"
},
"Math ni": {
"prefix": "\\ni",
"body": [
"∋"
],
"description": "Insert ∋"
},
"Math parallel": {
"prefix": "\\parallel",
"body": [
"∥"
],
"description": "Insert ∥"
},
"Math perp": {
"prefix": "\\perp",
"body": [
"⊥"
],
"description": "Insert ⊥"
},
"Math models": {
"prefix": "\\models",
"body": [
"⊨"
],
"description": "Insert ⊨"
},
"Math forall": {
"prefix": "\\forall",
"body": [
"∀"
],
"description": "Insert ∀"
},
"Math exists": {
"prefix": "\\exists",
"body": [
"∃"
],
"description": "Insert ∃"
},
"Math nexists": {
"prefix": "\\nexists",
"body": [
"∄"
],
"description": "Insert ∄"
},
"Math neg": {
"prefix": "\\neg",
"body": [
"¬"
],
"description": "Insert ¬"
},
"Math land": {
"prefix": "\\land",
"body": [
"∧"
],
"description": "Insert ∧"
},
"Math lor": {
"prefix": "\\lor",
"body": [
"∨"
],
"description": "Insert ∨"
},
"Math cup": {
"prefix": "\\cup",
"body": [
"∪"
],
"description": "Insert ∪"
},
"Math cap": {
"prefix": "\\cap",
"body": [
"∩"
],
"description": "Insert ∩"
},
"Math setminus": {
"prefix": "\\setminus",
"body": [
"∖"
],
"description": "Insert ∖"
},
"Math emptyset": {
"prefix": "\\emptyset",
"body": [
"∅"
],
"description": "Insert ∅"
},
"Math varnothing": {
"prefix": "\\varnothing",
"body": [
"∅"
],
"description": "Insert ∅"
},
"Arrow to": {
"prefix": "\\to",
"body": [
"→"
],
"description": "Insert →"
},
"Arrow rightarrow": {
"prefix": "\\rightarrow",
"body": [
"→"
],
"description": "Insert →"
},
"Arrow gets": {
"prefix": "\\gets",
"body": [
"←"
],
"description": "Insert ←"
},
"Arrow leftarrow": {
"prefix": "\\leftarrow",
"body": [
"←"
],
"description": "Insert ←"
},
"Arrow uparrow": {
"prefix": "\\uparrow",
"body": [
"↑"
],
"description": "Insert ↑"
},
"Arrow downarrow": {
"prefix": "\\downarrow",
"body": [
"↓"
],
"description": "Insert ↓"
},
"Arrow leftrightarrow": {
"prefix": "\\leftrightarrow",
"body": [
"↔"
],
"description": "Insert ↔"
},
"Arrow mapsto": {
"prefix": "\\mapsto",
"body": [
"↦"
],
"description": "Insert ↦"
},
"Arrow hookrightarrow": {
"prefix": "\\hookrightarrow",
"body": [
"↪"
],
"description": "Insert ↪"
},
"Arrow hookleftarrow": {
"prefix": "\\hookleftarrow",
"body": [
"↩"
],
"description": "Insert ↩"
},
"Arrow Rightarrow": {
"prefix": "\\Rightarrow",
"body": [
"⇒"
],
"description": "Insert ⇒"
},
"Arrow Leftarrow": {
"prefix": "\\Leftarrow",
"body": [
"⇐"
],
"description": "Insert ⇐"
},
"Arrow Leftrightarrow": {
"prefix": "\\Leftrightarrow",
"body": [
"⇔"
],
"description": "Insert ⇔"
},
"Arrow implies": {
"prefix": "\\implies",
"body": [
"⇒"
],
"description": "Insert ⇒"
},
"Arrow iff": {
"prefix": "\\iff",
"body": [
"⇔"
],
"description": "Insert ⇔"
},
"Arrow longrightarrow": {
"prefix": "\\longrightarrow",
"body": [
"⟶"
],
"description": "Insert ⟶"
},
"Arrow longleftarrow": {
"prefix": "\\longleftarrow",
"body": [
"⟵"
],
"description": "Insert ⟵"
},
"Arrow Longrightarrow": {
"prefix": "\\Longrightarrow",
"body": [
"⟹"
],
"description": "Insert ⟹"
},
"Arrow Longleftarrow": {
"prefix": "\\Longleftarrow",
"body": [
"⟸"
],
"description": "Insert ⟸"
},
"Math infty": {
"prefix": "\\infty",
"body": [
"∞"
],
"description": "Insert ∞"
},
"Math partial": {
"prefix": "\\partial",
"body": [
"∂"
],
"description": "Insert ∂"
},
"Math nabla": {
"prefix": "\\nabla",
"body": [
"∇"
],
"description": "Insert ∇"
},
"Math angle": {
"prefix": "\\angle",
"body": [
"∠"
],
"description": "Insert ∠"
},
"Math triangle": {
"prefix": "\\triangle",
"body": [
"△"
],
"description": "Insert △"
},
"Math sqrt": {
"prefix": "\\sqrt",
"body": [
"√"
],
"description": "Insert √"
},
"Math degree": {
"prefix": "\\degree",
"body": [
"°"
],
"description": "Insert °"
},
"Math aleph": {
"prefix": "\\aleph",
"body": [
"ℵ"
],
"description": "Insert ℵ"
},
"Math hbar": {
"prefix": "\\hbar",
"body": [
"ℏ"
],
"description": "Insert ℏ"
},
"Math ell": {
"prefix": "\\ell",
"body": [
"ℓ"
],
"description": "Insert ℓ"
},
"Math wp": {
"prefix": "\\wp",
"body": [
"℘"
],
"description": "Insert ℘"
},
"Math Re": {
"prefix": "\\Re",
"body": [
"ℜ"
],
"description": "Insert ℜ"
},
"Math Im": {
"prefix": "\\Im",
"body": [
"ℑ"
],
"description": "Insert ℑ"
},
"Big operator sum": {
"prefix": "\\sum",
"body": [
"∑"
],
"description": "Insert ∑"
},
"Big operator prod": {
"prefix": "\\prod",
"body": [
"∏"
],
"description": "Insert ∏"
},
"Big operator coprod": {
"prefix": "\\coprod",
"body": [
"∐"
],
"description": "Insert ∐"
},
"Big operator int": {
"prefix": "\\int",
"body": [
"∫"
],
"description": "Insert ∫"
},
"Big operator iint": {
"prefix": "\\iint",
"body": [
"∬"
],
"description": "Insert ∬"
},
"Big operator iiint": {
"prefix": "\\iiint",
"body": [
"∭"
],
"description": "Insert ∭"
},
"Big operator oint": {
"prefix": "\\oint",
"body": [
"∮"
],
"description": "Insert ∮"
},
"Delimiter langle": {
"prefix": "\\langle",
"body": [
"⟨"
],
"description": "Insert ⟨"
},
"Delimiter rangle": {
"prefix": "\\rangle",
"body": [
"⟩"
],
"description": "Insert ⟩"
},
"Delimiter lceil": {
"prefix": "\\lceil",
"body": [
"⌈"
],
"description": "Insert ⌈"
},
"Delimiter rceil": {
"prefix": "\\rceil",
"body": [
"⌉"
],
"description": "Insert ⌉"
},
"Delimiter lfloor": {
"prefix": "\\lfloor",
"body": [
"⌊"
],
"description": "Insert ⌊"
},
"Delimiter rfloor": {
"prefix": "\\rfloor",
"body": [
"⌋"
],
"description": "Insert ⌋"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment