diff --git a/home/.chezmoiignore b/home/.chezmoiignore index d718af5..0f0e2ec 100644 --- a/home/.chezmoiignore +++ b/home/.chezmoiignore @@ -31,6 +31,7 @@ key.txt .config/Code .config/Cursor .config/lazygit +.config/zed {{ end }} diff --git a/home/.managed/zed/keymap.linux.json b/home/.managed/zed/keymap.linux.json new file mode 100644 index 0000000..b7c1be6 --- /dev/null +++ b/home/.managed/zed/keymap.linux.json @@ -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" + } + } +] diff --git a/home/.managed/zed/keymap.windows.json b/home/.managed/zed/keymap.windows.json new file mode 100644 index 0000000..b7c1be6 --- /dev/null +++ b/home/.managed/zed/keymap.windows.json @@ -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" + } + } +] diff --git a/home/.managed/zed/settings.linux.json b/home/.managed/zed/settings.linux.json new file mode 100644 index 0000000..873c337 --- /dev/null +++ b/home/.managed/zed/settings.linux.json @@ -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" + } +} diff --git a/home/.managed/zed/settings.windows.json b/home/.managed/zed/settings.windows.json new file mode 100644 index 0000000..873c337 --- /dev/null +++ b/home/.managed/zed/settings.windows.json @@ -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" + } +} diff --git a/home/AppData/Roaming/Zed/symlink_keymap.json.tmpl b/home/AppData/Roaming/Zed/symlink_keymap.json.tmpl new file mode 100644 index 0000000..2a74f03 --- /dev/null +++ b/home/AppData/Roaming/Zed/symlink_keymap.json.tmpl @@ -0,0 +1,3 @@ +{{ if eq .chezmoi.os "windows" }} +{{ .chezmoi.sourceDir }}/.managed/zed/keymap.windows.json +{{ end }} diff --git a/home/AppData/Roaming/Zed/symlink_settings.json.tmpl b/home/AppData/Roaming/Zed/symlink_settings.json.tmpl new file mode 100644 index 0000000..d9e2569 --- /dev/null +++ b/home/AppData/Roaming/Zed/symlink_settings.json.tmpl @@ -0,0 +1,3 @@ +{{ if eq .chezmoi.os "windows" }} +{{ .chezmoi.sourceDir }}/.managed/zed/settings.windows.json +{{ end }} diff --git a/home/AppData/Roaming/Zed/themes/.keep b/home/AppData/Roaming/Zed/themes/.keep new file mode 100644 index 0000000..e69de29 diff --git a/home/dot_config/zed/symlink_keymap.json.tmpl b/home/dot_config/zed/symlink_keymap.json.tmpl new file mode 100644 index 0000000..d4bfe79 --- /dev/null +++ b/home/dot_config/zed/symlink_keymap.json.tmpl @@ -0,0 +1,3 @@ +{{ if (and (eq .chezmoi.os "linux") (not .wsl)) }} +{{ .chezmoi.sourceDir }}/.managed/zed/keymap.linux.json +{{ end }} diff --git a/home/dot_config/zed/symlink_settings.json.tmpl b/home/dot_config/zed/symlink_settings.json.tmpl new file mode 100644 index 0000000..e0f0fe7 --- /dev/null +++ b/home/dot_config/zed/symlink_settings.json.tmpl @@ -0,0 +1,3 @@ +{{ if (and (eq .chezmoi.os "linux") (not .wsl)) }} +{{ .chezmoi.sourceDir }}/.managed/zed/settings.linux.json +{{ end }} diff --git a/home/dot_config/zed/themes/.keep b/home/dot_config/zed/themes/.keep new file mode 100644 index 0000000..e69de29