- Apps: Add `cargo` and `rustc` to user environment applications. - Neovim: Configure `kdl_lsp` for `.kdl` files and add `kdl` Tree-sitter parser. - Zed: Register `kdl` extension, configure `kdl-lsp` binary path lookup, and bind the KDL language server. Note: Since the kdl-lsp binary isn't packaged in Nixpkgs, it should be installed globally via cargo: `cargo install kdl-lsp`
135 lines
2.5 KiB
JSON
135 lines
2.5 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 (cmd-shift-p / ctrl-shift-p)
|
|
{
|
|
"proxy": "",
|
|
"disable_ai": true,
|
|
"auto_install_extensions": {
|
|
"github-theme": true,
|
|
"kdl": true
|
|
},
|
|
"project_panel": {
|
|
"hide_gitignore": false,
|
|
"dock": "left"
|
|
},
|
|
"terminal": {
|
|
"shell": "system"
|
|
},
|
|
"prettier": {
|
|
"allowed": true
|
|
},
|
|
"document_symbols": "on",
|
|
"document_folding_ranges": "on",
|
|
"semantic_tokens": "combined",
|
|
"unnecessary_code_fade": 0.3,
|
|
"hide_mouse": "on_typing",
|
|
"cursor_shape": "underline",
|
|
"buffer_font_family": "RobotoMono Nerd Font",
|
|
"cli_default_open_behavior": "new_window",
|
|
"use_system_prompts": false,
|
|
"on_last_window_closed": "platform_default",
|
|
"when_closing_with_no_tabs": "platform_default",
|
|
"session": {
|
|
"trust_all_worktrees": true
|
|
},
|
|
"vim_mode": true,
|
|
"icon_theme": "Zed (Default)",
|
|
"ui_font_size": 16,
|
|
"buffer_font_size": 12.0,
|
|
"theme": {
|
|
"mode": "dark",
|
|
"light": "GitHub Dark",
|
|
"dark": "GitHub Dark"
|
|
},
|
|
"lsp": {
|
|
"rust-analyzer": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"pyright": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"ruff": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"basedpyright": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"nil": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"nixd": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"jdtls": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"typescript-language-server": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"vtsls": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"lua-language-server": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"taplo": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"marksman": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
},
|
|
"kdl-lsp": {
|
|
"binary": {
|
|
"path_lookup": true
|
|
}
|
|
}
|
|
},
|
|
"languages": {
|
|
"Python": {
|
|
"language_servers": [
|
|
"pyright",
|
|
"ruff"
|
|
],
|
|
"formatter": {
|
|
"language_server": {
|
|
"name": "ruff"
|
|
}
|
|
}
|
|
},
|
|
"KDL": {
|
|
"language_servers": [
|
|
"kdl-lsp"
|
|
]
|
|
}
|
|
}
|
|
}
|