mirror of
https://github.com/elkowar/dots-of-war.git
synced 2025-02-20 04:12:14 +00:00
stuff
This commit is contained in:
parent
2868da14a9
commit
ec1fc2d0ae
2 changed files with 300 additions and 0 deletions
194
eggs/zed/keymap_backup.json
Normal file
194
eggs/zed/keymap_backup.json
Normal file
|
@ -0,0 +1,194 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"context": "Pane",
|
||||||
|
"bindings": {
|
||||||
|
// unbind closing the tab with this
|
||||||
|
"ctrl-w": null,
|
||||||
|
"ctrl-w ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
|
||||||
|
"ctrl-w ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
|
||||||
|
"ctrl-w ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
|
||||||
|
"ctrl-w ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
|
||||||
|
"ctrl-shift-t": "pane::ReopenClosedItem",
|
||||||
|
"ctrl-o": "pane::GoBack",
|
||||||
|
"ctrl-i": "pane::GoForward"
|
||||||
|
// "shift-escape": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "EmptyPane",
|
||||||
|
"bindings": {
|
||||||
|
":": "command_palette::Toggle",
|
||||||
|
"space p": "file_finder::Toggle"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "os == macos && Editor && VimControl && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"cmd-d": "editor::SelectNext"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-alt-shift-p": "projects::OpenRecent",
|
||||||
|
"ctrl-alt-shift-o": "workspace::Open"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "os == linux && Editor && VimControl && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-shift-d": "editor::SelectNext"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "MarkdownPreview || EmptyPane || Diagnostics || Editor && VimControl && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"z space": "editor::FoldAll",
|
||||||
|
"z backspace": "editor::FoldFunctionBodies",
|
||||||
|
"z enter": "editor::UnfoldAll",
|
||||||
|
|
||||||
|
"space b c": "pane::CloseActiveItem",
|
||||||
|
":": "command_palette::Toggle",
|
||||||
|
"space p": "file_finder::Toggle",
|
||||||
|
"space o": "pane::DeploySearch",
|
||||||
|
|
||||||
|
"space h": "pane::ActivatePrevItem",
|
||||||
|
"space l": "pane::ActivateNextItem",
|
||||||
|
"space c space": "editor::ToggleComments",
|
||||||
|
|
||||||
|
// go to search result
|
||||||
|
"g space": "editor::OpenExcerpts",
|
||||||
|
"space e j": "editor::ExpandExcerptsDown",
|
||||||
|
"space e k": "editor::ExpandExcerptsUp",
|
||||||
|
|
||||||
|
// multi-cursor
|
||||||
|
"cmd-shift-d": "editor::SelectPrevious",
|
||||||
|
"cmd-shift-l": "editor::SelectAllMatches",
|
||||||
|
"ctrl-j": "editor::AddSelectionBelow",
|
||||||
|
"ctrl-k": "editor::AddSelectionAbove",
|
||||||
|
"alt-d": "editor::SelectNext",
|
||||||
|
"alt-j": "editor::SelectAllMatches",
|
||||||
|
// lsp
|
||||||
|
"space m f": "editor::Format",
|
||||||
|
"space m s": "project_symbols::Toggle",
|
||||||
|
"space m g": "editor::GoToDefinition",
|
||||||
|
"space m d": "editor::Hover",
|
||||||
|
"space m n": "editor::Rename",
|
||||||
|
"space m r": "editor::FindAllReferences",
|
||||||
|
"space m t": "editor::GoToTypeDefinition",
|
||||||
|
"space m e": "editor::GoToDiagnostic",
|
||||||
|
"space m E": "editor::GoToPrevDiagnostic",
|
||||||
|
"space m v": "editor::ToggleCodeActions",
|
||||||
|
"space m o": "outline::Toggle",
|
||||||
|
"space m h": "editor::ShowSignatureHelp",
|
||||||
|
// diagnostics
|
||||||
|
"space e e": "diagnostics::Deploy",
|
||||||
|
"space e w": "diagnostics::ToggleWarnings",
|
||||||
|
// view
|
||||||
|
"space v n": "editor::ToggleLineNumbers",
|
||||||
|
"space v i": "editor::ToggleInlayHints",
|
||||||
|
// Git
|
||||||
|
"space g b": "editor::ToggleGitBlame"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_mode == normal && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"backspace": ["vim::PushOperator", { "Sneak": {} }],
|
||||||
|
"return": ["vim::PushOperator", { "SneakBackward": {} }]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_mode == insert",
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-w": "editor::DeleteToPreviousWordStart",
|
||||||
|
"alt-tab": "zeta::NextEdit",
|
||||||
|
"alt-shift-tab": "zeta::PreviousEdit"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "os == linux && ((Editor && vim_mode == normal) || Terminal) && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-t ctrl-t": "terminal_panel::ToggleFocus",
|
||||||
|
"ctrl-t ctrl-n": "workspace::NewTerminal",
|
||||||
|
"ctrl-t ctrl-shift-n": "workspace::NewCenterTerminal",
|
||||||
|
"ctrl-t ctrl-h": "pane::ActivatePrevItem",
|
||||||
|
"ctrl-t ctrl-l": "pane::ActivateNextItem",
|
||||||
|
"ctrl-x ctrl-c": "pane::CloseActiveItem",
|
||||||
|
"ctrl-t ctrl-c": "pane::CloseActiveItem",
|
||||||
|
|
||||||
|
"alt-j": "workspace::ToggleBottomDock"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "os == macos && ((Editor && vim_mode == normal) || Terminal) && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"cmd-t cmd-t": "terminal_panel::ToggleFocus",
|
||||||
|
"cmd-t cmd-n": "workspace::NewTerminal",
|
||||||
|
"cmd-t cmd-shift-n": "workspace::NewCenterTerminal",
|
||||||
|
"cmd-t cmd-h": "pane::ActivatePrevItem",
|
||||||
|
"cmd-t cmd-l": "pane::ActivateNextItem",
|
||||||
|
"cmd-x cmd-c": "pane::CloseActiveItem"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "os == linux && ((Editor && vim_mode == normal) || Terminal) && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"alt-j": "workspace::ToggleBottomDock",
|
||||||
|
"alt-t alt-t": "terminal_panel::ToggleFocus",
|
||||||
|
"alt-t alt-n": "workspace::NewTerminal",
|
||||||
|
"alt-t alt-shift-n": "workspace::NewCenterTerminal",
|
||||||
|
"alt-t alt-h": "pane::ActivatePrevItem",
|
||||||
|
"alt-t alt-l": "pane::ActivateNextItem",
|
||||||
|
"alt-x alt-c": "pane::CloseActiveItem"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_mode == visual && !VimWaiting && !menu",
|
||||||
|
"bindings": {
|
||||||
|
"n": "editor::SelectLargerSyntaxNode",
|
||||||
|
"N": "editor::SelectSmallerSyntaxNode",
|
||||||
|
"m": "vim::SelectNext",
|
||||||
|
"M": "vim::SelectPrevious",
|
||||||
|
",": "editor::SplitSelectionIntoLines"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"context": "ProjectSearchBar",
|
||||||
|
"bindings": {
|
||||||
|
"space b c": "pane::CloseActiveItem",
|
||||||
|
"escape escape": "pane::CloseActiveItem"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Panel stuff
|
||||||
|
{
|
||||||
|
"context": "Editor && VimControl && !VimWaiting && !menu || OutlinePanel || ProjectPanel || Assistant || EmptyPane",
|
||||||
|
"bindings": {
|
||||||
|
"space v h": "workspace::ToggleLeftDock",
|
||||||
|
"space v l": "workspace::ToggleRightDock",
|
||||||
|
|
||||||
|
"space v o": "outline_panel::ToggleFocus",
|
||||||
|
"space v p": "project_panel::ToggleFocus",
|
||||||
|
"space v a": "assistant::ToggleFocus"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "OutlinePanel",
|
||||||
|
"bindings": {
|
||||||
|
"space l": "outline_panel::ToggleFocus"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "ProjectPanel",
|
||||||
|
"bindings": {
|
||||||
|
"space l": "project_panel::ToggleFocus"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Assistant",
|
||||||
|
"bindings": {
|
||||||
|
"space h": "assistant::ToggleFocus"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
106
eggs/zed/settings_backup.json
Normal file
106
eggs/zed/settings_backup.json
Normal file
|
@ -0,0 +1,106 @@
|
||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"inline_completion_provider": "zed"
|
||||||
|
},
|
||||||
|
"icon_theme": "Material Icon Theme",
|
||||||
|
"telemetry": {
|
||||||
|
"metrics": false,
|
||||||
|
"diagnostics": false
|
||||||
|
},
|
||||||
|
"remove_trailing_whitespace_on_save": false,
|
||||||
|
"auto_signature_help": false,
|
||||||
|
"unnecessary_code_fade": 0.5,
|
||||||
|
// "use_autoclose": true,
|
||||||
|
// "always_treat_brackets_as_autoclosed": false,
|
||||||
|
// "unstable.ui_density": "compact",
|
||||||
|
"assistant": {
|
||||||
|
"default_model": {
|
||||||
|
"provider": "copilot_chat",
|
||||||
|
"model": "claude-3-5-sonnet"
|
||||||
|
},
|
||||||
|
"enable_experimental_live_diffs": true,
|
||||||
|
"version": "2"
|
||||||
|
},
|
||||||
|
"theme": "Gruvbox Dark Hard",
|
||||||
|
"buffer_font_size": 14.0,
|
||||||
|
"buffer_font_family": "Input",
|
||||||
|
// "buffer_font_family": "Input",
|
||||||
|
// "buffer_font_family": "FiraCode Nerd Font",
|
||||||
|
// "buffer_font_family": "JetBrainsMono Nerd Font Mono",
|
||||||
|
// "buffer_line_height": { "custom": 1.55 },
|
||||||
|
// "ui_font_family": "Noto Sans",
|
||||||
|
// "buffer_font_family": "Zed Mono",
|
||||||
|
|
||||||
|
// "active_pane_magnification": 1.3,
|
||||||
|
"tab_bar": {
|
||||||
|
"show_nav_history_buttons": false
|
||||||
|
},
|
||||||
|
"calls": {
|
||||||
|
"mute_on_join": true
|
||||||
|
},
|
||||||
|
"gutter": {
|
||||||
|
"line_numbers": false,
|
||||||
|
"folds": false
|
||||||
|
},
|
||||||
|
"toolbar": {
|
||||||
|
"quick_actions": false
|
||||||
|
// "selections_menu": false
|
||||||
|
},
|
||||||
|
"vertical_scroll_margin": 5,
|
||||||
|
"tabs": {
|
||||||
|
"git_status": true,
|
||||||
|
"file_icons": true,
|
||||||
|
"show_diagnostics": "errors"
|
||||||
|
},
|
||||||
|
"use_smartcase_search": true,
|
||||||
|
"preview_tabs": {
|
||||||
|
"enabled": true,
|
||||||
|
"enable_preview_from_file_finder": true,
|
||||||
|
"enable_preview_from_code_navigation": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"message_editor": {
|
||||||
|
"auto_replace_emoji_shortcode": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"terminal": {
|
||||||
|
"font_family": "FiraCode Nerd Font",
|
||||||
|
"font_size": 14
|
||||||
|
},
|
||||||
|
"vim_mode": true,
|
||||||
|
"vim": {
|
||||||
|
"use_smartcase_find": true,
|
||||||
|
"use_system_clipboard": "on_yank"
|
||||||
|
},
|
||||||
|
"languages": {
|
||||||
|
"JSON": {
|
||||||
|
"format_on_save": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lsp": {
|
||||||
|
"rust-analyzer": {
|
||||||
|
"initialization_options": {
|
||||||
|
"typing": {
|
||||||
|
// Temporary workaround around round rust-analzyer wrongly inserting `|` twice
|
||||||
|
"excludeChars": "|<"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"drop_target_size": 0.3,
|
||||||
|
"indent_guides": {
|
||||||
|
"coloring": "fixed"
|
||||||
|
},
|
||||||
|
"experimental.theme_overrides": {
|
||||||
|
"editor.indent_guide": "#ffffff08",
|
||||||
|
"panel.indent_guide": "#ffffff08",
|
||||||
|
"panel.indent_guide_active": "#ffffff11",
|
||||||
|
"panel.indent_guide_hover": "#ffffff13",
|
||||||
|
|
||||||
|
"panel.background": "#282828",
|
||||||
|
"tab_bar.background": "#282828",
|
||||||
|
// "border": "#3c3836",
|
||||||
|
"border": "#282828",
|
||||||
|
"title_bar.background": "#1d2021"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue