update zed config

This commit is contained in:
Alexander Navarro 2026-02-04 12:11:22 -03:00
parent 8e8e637dbe
commit c5bc93250e
7 changed files with 557 additions and 4 deletions

View file

@ -1,3 +0,0 @@
auth sufficient pam_fprintd.so timeout=-1
auth sufficient /run/current-system/sw/lib/security/pam_fprintd.so timeout=-1 # for NixOS
auth required pam_unix.so

View file

@ -1 +0,0 @@
/home/aleidk/.config/dotfiles/Configs/zed/.config/zed

116
configs/zed/config.json Normal file
View file

@ -0,0 +1,116 @@
// 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)
{
"git": {
"inline_blame": {
"enabled": false
}
},
"agent": {
"button": false,
"model_parameters": []
},
"collaboration_panel": {
"button": false
},
"notification_panel": {
"button": false
},
"git_panel": {
"status_style": "icon"
},
"bottom_dock_layout": "contained",
"preview_tabs": {
"enable_preview_from_file_finder": true
},
"tabs": {
"show_diagnostics": "all",
"file_icons": true,
"git_status": true
},
"search": {
"button": true
},
"diagnostics": {
"button": true
},
"debugger": {
"button": true
},
"status_bar": {
"cursor_position_button": true,
"active_language_button": true
},
"project_panel": {
"hide_root": true,
"starts_open": false,
"entry_spacing": "standard",
"hide_gitignore": false,
"button": true
},
"toolbar": {
"code_actions": true
},
"horizontal_scroll_margin": 6.0,
"vertical_scroll_margin": 5.0,
"use_system_window_tabs": false,
"tab_bar": {
"show_nav_history_buttons": false,
"show": true
},
"title_bar": {
"show_branch_icon": true,
"show_branch_name": true,
"show_project_items": true,
"show_onboarding_banner": false,
"show_menus": false,
"show_user_picture": false,
"show_sign_in": false
},
"terminal": {
"button": true,
"font_size": 12.0
},
"indent_guides": {
"coloring": "indent_aware"
},
"tab_size": 2,
"scrollbar": {
"show": "never"
},
"auto_signature_help": true,
"ui_font_family": "Adwaita Sans",
"buffer_font_family": "JetBrainsMono Nerd Font",
"icon_theme": {
"mode": "system",
"light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato"
},
"ssh_connections": [
{
"host": "GetDTE-Prod-App",
"args": [],
"projects": [
{
"paths": ["/bcn/invoice-chile/scripts"]
}
]
}
],
"disable_ai": true,
"auto_update": false,
"vim_mode": true,
"ui_font_size": 16.0,
"buffer_font_size": 14.0,
"theme": {
"mode": "system",
"light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato"
}
}

188
configs/zed/keymap.json Normal file
View file

@ -0,0 +1,188 @@
[
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
"bindings": {
// Git
"enter": "vim::PushSneak",
// Toggle inlay hints
"space u i": "editor::ToggleInlayHints",
// NOTE: Toggle Zen mode, not fully working yet
"space u z": "workspace::ToggleZoom",
// Open recent project
"space f p": "projects::OpenRecent",
// Search word under cursor
"space f w": "pane::DeploySearch",
// Go to file with `gf`
"g f": "editor::OpenExcerpts"
}
},
{
// move context menus with Ctrl + hjkl in completions
"context": "(vim_mode == normal || vim_mode == insert) && (showing_code_actions || showing_completions)",
"bindings": {
"ctrl-h": "editor::ContextMenuPrevious",
"ctrl-j": "editor::ContextMenuNext",
"ctrl-k": "editor::ContextMenuPrevious",
"ctrl-l": "editor::ContextMenuNext"
}
},
{
"context": "Editor && (vim_mode == normal || vim_mode == insert)",
"bindings": {
"ctrl-shift-v": "editor::Paste"
}
},
{
// move context menus with Ctrl + hjkl in menus
"context": "Picker || menu",
"bindings": {
"ctrl-h": "menu::SelectPrevious",
"ctrl-j": "menu::SelectNext",
"ctrl-k": "menu::SelectPrevious",
"ctrl-l": "menu::SelectNext"
}
},
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"|": "pane::SplitVertical",
// Window movement bindings
// Ctrl jklk to move between panes
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
"space e": "pane::RevealInProjectPanel",
// +LSP
"space l a": "editor::ToggleCodeActions",
"space l r": "editor::Rename",
"g d": "editor::GoToDefinition",
"g D": "editor::GoToDefinitionSplit",
"g i": "editor::GoToImplementation",
"g I": "editor::GoToImplementationSplit",
"g t": "editor::GoToTypeDefinition",
"g T": "editor::GoToTypeDefinitionSplit",
"g r": "editor::FindAllReferences",
"space l j": "editor::GoToDiagnostic",
"space l k": "editor::GoToPreviousDiagnostic",
// Symbol search
"space f o": "outline::Toggle",
"space f O": "project_symbols::Toggle",
// Diagnostic
"space f q": "diagnostics::Deploy",
// +Git
// Git prev/next hunk
"space g j": "editor::GoToHunk",
"space g k": "editor::GoToPreviousHunk",
// + Buffers
// Switch between buffers
"shift-h": "pane::ActivatePreviousItem",
"shift-l": "pane::ActivateNextItem",
// Close active panel
"space b c": "pane::CloseActiveItem",
"space b d": "pane::CloseActiveItem",
// Close other items
"space b o": "pane::CloseOtherItems",
// Save file
"ctrl-s": "workspace::Save",
// File finder
"space f f": "file_finder::Toggle",
// Project search
"space f W": "pane::DeploySearch"
}
},
{
"context": "Editor && vim_mode == visual",
"bindings": {
"shift-j": "editor::MoveLineDown",
"shift-k": "editor::MoveLineUp"
}
},
// Empty pane, set of keybindings that are available when there is no active editor
{
"context": "(EmptyPane || SharedScreen) && vim_mode != insert",
"bindings": {
// Open file finder
"space f f": "file_finder::Toggle",
// Open recent project
"space f p": "projects::OpenRecent"
}
},
{
"context": "Workspace",
"bindings": {
"ctrl-t": "terminal_panel::ToggleFocus"
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown"
}
},
// File panel (netrw)
{
"context": "ProjectPanel && not_editing",
"bindings": {
"a": "project_panel::NewFile",
"A": "project_panel::NewDirectory",
"r": "project_panel::Rename",
"d": "project_panel::Delete",
"x": "project_panel::Cut",
"c": "project_panel::Copy",
"p": "project_panel::Paste",
"y": "workspace::CopyRelativePath",
"Y": "workspace::CopyPath",
"o": ["project_panel::Open", "workspace::toggleLeftDock"],
// Close project panel as project file panel on the right
// Navigate between panel
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
"space e": "workspace::ToggleLeftDock"
}
},
// Panel nagivation
{
"context": "Dock",
"bindings": {
"ctrl-w h": "workspace::ActivatePaneLeft",
"ctrl-w l": "workspace::ActivatePaneRight",
"ctrl-w k": "workspace::ActivatePaneUp",
"ctrl-w j": "workspace::ActivatePaneDown"
}
},
{
"context": "vim_operator == a || vim_operator == i || vim_operator == cs",
"bindings": {
// mini.ai plugin behavior
"\"": "vim::MiniQuotes",
"[": "vim::MiniBrackets",
"]": "vim::MiniBrackets",
"q": "vim::MiniQuotes",
"b": "vim::MiniBrackets"
}
},
{
"context": "vim_mode == visual",
"bindings": {
"shift-s": "vim::PushAddSurrounds",
"g x": "vim::Exchange"
}
}
]

253
configs/zed/settings.json Normal file
View file

@ -0,0 +1,253 @@
// 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)
{
"zoomed_padding": false,
"active_pane_modifiers": {
"border_size": -1.0
},
"window_decorations": "client",
"close_on_file_delete": true,
"file_finder": {
"modal_max_width": "medium"
},
"use_smartcase_search": true,
"colorize_brackets": true,
"show_whitespaces": "selection",
"always_treat_brackets_as_autoclosed": false,
"vim": {
"use_smartcase_find": true
},
"sticky_scroll": {
"enabled": true
},
"scroll_beyond_last_line": "vertical_scroll_margin",
"which_key": {
"enabled": true
},
"rounded_selection": true,
"current_line_highlight": "gutter",
"cursor_shape": "bar",
"session": {
"trust_all_worktrees": true
},
"lsp_document_colors": "inlay",
"inlay_hints": {
"show_background": false,
"show_other_hints": true,
"show_parameter_hints": true,
"show_type_hints": true,
"show_value_hints": true,
"enabled": true,
},
"languages": {
"PHP": {
"inlay_hints": {
"enabled": true,
},
},
"Markdown": {
"enable_language_server": true,
"language_servers": ["rumdl"],
"formatter": "language_server",
"format_on_save": "on",
},
},
"git": {
"inline_blame": {
"enabled": false,
},
},
"agent": {
"button": true,
"model_parameters": [],
},
"collaboration_panel": {
"button": false,
},
"notification_panel": {
"button": false,
},
"git_panel": {
"tree_view": true,
"collapse_untracked_diff": false,
"sort_by_path": false,
"status_style": "label_color",
},
"bottom_dock_layout": "contained",
"preview_tabs": {
"enable_preview_from_file_finder": true,
},
"tabs": {
"show_diagnostics": "errors",
"file_icons": true,
"git_status": true,
},
"search": {
"center_on_match": true,
"button": false,
},
"diagnostics": {
"inline": {
"min_column": 0,
"padding": 4,
"enabled": true,
},
"button": true,
},
"debugger": {
"button": true,
},
"status_bar": {
"cursor_position_button": true,
"active_language_button": true,
},
"project_panel": {
"sort_mode": "directories_first",
"hide_hidden": false,
"show_diagnostics": "errors",
"hide_root": true,
"starts_open": false,
"entry_spacing": "standard",
"hide_gitignore": false,
"button": true,
},
"toolbar": {
"breadcrumbs": true,
"selections_menu": true,
"quick_actions": false,
"code_actions": true,
},
"horizontal_scroll_margin": 25.0,
"vertical_scroll_margin": 15.0,
"use_system_window_tabs": false,
"tab_bar": {
"show_pinned_tabs_in_separate_row": false,
"show_tab_bar_buttons": false,
"show_nav_history_buttons": false,
"show": true,
},
"title_bar": {
"show_user_menu": false,
"show_branch_icon": true,
"show_branch_name": true,
"show_project_items": true,
"show_onboarding_banner": false,
"show_menus": false,
"show_user_picture": false,
"show_sign_in": false,
},
"terminal": {
"toolbar": {
"breadcrumbs": false
},
"button": true,
"font_size": 14.0,
},
"indent_guides": {
"active_line_width": 1,
"background_coloring": "disabled",
"coloring": "fixed",
},
"tab_size": 2,
"scrollbar": {
"show": "never",
},
"auto_signature_help": true,
"ui_font_family": "DejaVu Sans",
"buffer_font_family": "JetBrainsMono Nerd Font",
"icon_theme": {
"mode": "system",
"light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato",
},
"ssh_connections": [
{
"host": "GetDTE-Prod-App",
"args": [],
"projects": [
{
"paths": ["/bcn/invoice-chile/scripts"],
},
{
"paths": ["/bcn/workflow"],
},
{
"paths": ["/bcn/workflow/piloto/php/./"],
},
],
},
{
"host": "t-800",
"args": [],
"projects": [
{
"paths": ["/opt/stacks"],
},
],
"nickname": "T-800",
},
{
"host": "getwfr-2-piloto",
"args": [],
"projects": [],
},
{
"host": "saria",
"args": [],
"projects": [
{
"paths": ["/opt/stacks"],
},
],
"nickname": "Saria",
},
{
"host": "getwfr-2-prod",
"args": [],
"projects": [
{
"paths": ["/bcn/workflow/produccion/php/./"],
},
],
},
],
"disable_ai": false,
"auto_update": false,
"vim_mode": true,
"ui_font_size": 16.0,
"buffer_font_size": 14.0,
"theme": {
"mode": "system",
"light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato",
},
"lsp": {
"rumdl": {
"binary": {
"path": "rumdl",
"arguments": ["server"],
},
},
"rust-analyzer": {
"enable_lsp_tasks": true,
"initialization_options": {
"inlayHints": {
"maxLength": null,
"lifetimeElisionHints": {
"enable": "skip_trivial",
"useParameterNames": true,
},
"closureReturnTypeHints": {
"enable": "always",
},
},
},
},
},
}

0
configs/zed/themes/.keep Normal file
View file

0
szurubooru_toolkit.log Normal file
View file