user: add zed configs
This commit is contained in:
parent
ce0b7a9aa0
commit
d07fca6ccc
2 changed files with 54 additions and 0 deletions
18
zed/keymap.json
Normal file
18
zed/keymap.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// 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": "Editor",
|
||||
"bindings": {
|
||||
"ctrl-shift-up": "editor::MoveLineUp",
|
||||
"ctrl-shift-down": "editor::MoveLineDown",
|
||||
"alt-down": ["editor::SelectNext", { "replace_newest": false }],
|
||||
"alt-up": ["editor::SelectPrevious", { "replace_newest": false }]
|
||||
}
|
||||
}
|
||||
]
|
||||
36
zed/settings.json
Normal file
36
zed/settings.json
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
// 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)
|
||||
{
|
||||
"ui_font_size": 16,
|
||||
"buffer_font_size": 16,
|
||||
"theme": {
|
||||
"mode": "system",
|
||||
"light": "One Light",
|
||||
"dark": "One Dark"
|
||||
},
|
||||
"buffer_font_family": "CaskaydiaCove Nerd Font",
|
||||
"multi_cursor_modifier": "cmd_or_ctrl",
|
||||
"languages": {
|
||||
"Nix": {
|
||||
"language_servers": ["nixd", "!nil"]
|
||||
}
|
||||
},
|
||||
"lsp": {
|
||||
"nixd": {
|
||||
"settings": {
|
||||
"nixpkgs": {
|
||||
"expr": "import (builtins.getFlake (builtins.toString ./.)).inputs.nixpkgs {}"
|
||||
},
|
||||
"formatting": {
|
||||
"command": ["alejandra"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue