mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 00:24:06 -06:00
config: add Zed config
This commit is contained in:
@@ -31,6 +31,7 @@ key.txt
|
||||
.config/Code
|
||||
.config/Cursor
|
||||
.config/lazygit
|
||||
.config/zed
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// 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 && vim_mode == insert",
|
||||
"bindings": {
|
||||
// "j k": "vim::NormalBefore"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-pageup": "editor::HalfPageUp"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-pagedown": "editor::HalfPageDown"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
// 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 && vim_mode == insert",
|
||||
"bindings": {
|
||||
// "j k": "vim::NormalBefore"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-pageup": "editor::HalfPageUp"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-pagedown": "editor::HalfPageDown"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
// 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)
|
||||
{
|
||||
"base_keymap": "Cursor",
|
||||
"ui_font_size": 16,
|
||||
"buffer_font_size": 15,
|
||||
"theme": {
|
||||
"mode": "dark",
|
||||
"light": "One Light",
|
||||
"dark": "Gruvbox Dark Hard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// 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)
|
||||
{
|
||||
"base_keymap": "Cursor",
|
||||
"ui_font_size": 16,
|
||||
"buffer_font_size": 15,
|
||||
"theme": {
|
||||
"mode": "dark",
|
||||
"light": "One Light",
|
||||
"dark": "Gruvbox Dark Hard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ if eq .chezmoi.os "windows" }}
|
||||
{{ .chezmoi.sourceDir }}/.managed/zed/keymap.windows.json
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ if eq .chezmoi.os "windows" }}
|
||||
{{ .chezmoi.sourceDir }}/.managed/zed/settings.windows.json
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ if (and (eq .chezmoi.os "linux") (not .wsl)) }}
|
||||
{{ .chezmoi.sourceDir }}/.managed/zed/keymap.linux.json
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ if (and (eq .chezmoi.os "linux") (not .wsl)) }}
|
||||
{{ .chezmoi.sourceDir }}/.managed/zed/settings.linux.json
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user