feat(zed): Rust dev setup on Zed

This commit is contained in:
Pratik Tripathy
2025-07-28 10:34:33 +05:30
parent 4fa3e486bd
commit cd0a5cbeb9
2 changed files with 25 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
// To see the default key bindings run `zed: open default keymap`
// TODO: Enable spell checking in VIM mode
// FIX: ctrl+n & ctrl+p selections don't work on terminal: cause they are hijacked by IDE
// - Use them to select next & previous
[
{
@@ -78,6 +80,10 @@
//
// https://github.com/tommcdo/vim-exchange
// https://github.com/jeetsukumaran/vim-indentwise
//
// AI:
// Accept edit-prediction on Linux => alt-l
// Accept next predicted word => alt-right
"space tab": "project_panel::ToggleFocus",
"space / /": "journal::NewJournalEntry",

View File

@@ -32,7 +32,7 @@
"ui_font_size": 16,
"buffer_font_size": 18,
"buffer_font_family": "FuraCode Nerd Font",
"agent_font_size": 28,
"agent_font_size": 18,
"terminal": {
"font_family": "FuraCode Nerd Font",
"font_size": 18,
@@ -112,8 +112,8 @@
"agent": {
"default_profile": "ask",
"default_model": {
"provider": "zed.dev",
"model": "claude-sonnet-4"
"provider": "lmstudio",
"model": "mistralai/codestral-22b-v0.1"
},
"model_parameters": [],
"notify_when_agent_waiting": "all_screens"
@@ -125,5 +125,21 @@
"Markdown": {
"show_edit_predictions": false
}
},
"lsp": {
"rust-analyzer": {
"initialization_options": {
"inlayHints": {
"maxLength": null,
"lifetimeElisionHints": {
"useParameterNames": true
},
"closureReturnTypeHints": {
"enable": "always"
}
}
}
}
}
}