zed: language server settings

This commit is contained in:
Jozef Steinhübl 2024-09-03 18:59:19 +02:00
parent a244e514bb
commit 9f5692e46c
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 44 additions and 0 deletions

21
.config/zed/keymap.json Normal file
View file

@ -0,0 +1,21 @@
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: Open Default Keymap`
// from the command palette.
[
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor",
"bindings": {
// "j k": ["workspace::SendKeystrokes", "escape"]
}
}
]

View file

@ -27,6 +27,29 @@
"diagnostics": true,
"formatting": false
}
},
"ruff": {
"initialization_options": {
"settings": {
// Ruff server settings goes here
"lineLength": 80,
"lint": {
"extendSelect": ["I"]
}
}
}
}
},
"languages": {
"Python": {
"language_servers": ["pyright", "ruff"],
"formatter": {
"external": {
"command": "/home/hyro/.local/share/zed/extensions/work/ruff/ruff-0.6.3/ruff-x86_64-unknown-linux-gnu/ruff",
"arguments": ["format", "-"]
}
},
"format_on_save": "on"
}
},
"formatter": {