mirror of
https://github.com/xHyroM/dotfiles.git
synced 2024-11-21 22:31:04 +01:00
zed: language server settings
This commit is contained in:
parent
a244e514bb
commit
9f5692e46c
2 changed files with 44 additions and 0 deletions
21
.config/zed/keymap.json
Normal file
21
.config/zed/keymap.json
Normal 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"]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue