feat: visual editor configs

This commit is contained in:
dqnid committed 2026-11-01 23:05:32 +01:00
1 parent f25c883b7a
commit 78bf0390b9
4 files changed
+211 -10

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
{
"show_wrap_guides": true
}
+121
View File
@@ -0,0 +1,121 @@
// ╭────────────────────────────────╮
// │- Gram editor keys -│
// │- author: Daniel Heras Quesada -│
// ╰────────────────────────────────╯
[
{
"context": "Workspace || Editor || OutlinePanel || ProjectPanel || GitPanel || Terminal",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown",
"ctrl-shift-f": "project_search::SearchInNew",
"ctrl-shift-x": "task::Rerun",
"ctrl-e": "project_panel::ToggleFocus",
"ctrl-a": "outline_panel::ToggleFocus",
"ctrl-g": "git_panel::ToggleFocus",
"ctrl-p": "projects::OpenRecent",
"ctrl-x": "task::Spawn",
"ctrl-z": "workspace::ToggleBottomDock",
"ctrl-m": "workspace::ToggleCenteredLayout",
},
},
{
"context": "Editor",
"bindings": {
"ctrl-t": "workspace::NewFile",
"ctrl-w": "pane::CloseActiveItem",
"ctrl-W": "pane::CloseOtherItems",
"ctrl-shift-l": "pane::SplitRight",
"ctrl-shift-j": "pane::SplitDown",
"ctrl-shift-h": "pane::SplitLeft",
"ctrl-shift-k": "pane::SplitUp",
},
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
// "j k": [
// "workspace::SendKeystrokes",
// "escape"
// ]
},
},
{
"context": "OutlinePanel",
"bindings": {
"ctrl-a": "outline_panel::Toggle",
},
},
{
"context": "ProjectPanel",
"bindings": {
"ctrl-e": "project_panel::Toggle",
"f12": "project_panel::Rename",
"shift-enter": "workspace::OpenWithSystem",
},
},
{
"context": "GitPanel",
"bindings": {
"ctrl-g": "git_panel::Toggle",
},
},
{
"context": "ProjectPanel && not_editing",
"bindings": {
"d": "project_panel::Delete",
"c": "project_panel::Copy",
"r": "project_panel::Rename",
"x": "project_panel::Cut",
"Y": "workspace::CopyPath",
"y": "project_panel::Copy",
"p": "project_panel::Paste",
"a": "project_panel::NewFile",
"A": "project_panel::NewDirectory",
"/": "project_panel::NewSearchInDirectory",
"g h": "git::FileHistory",
},
},
{
"context": "Editor && (showing_code_actions || showing_completions)",
"bindings": {
"up": "editor::ContextMenuPrevious",
"down": "editor::ContextMenuNext",
"pageup": "editor::ContextMenuFirst",
"pagedown": "editor::ContextMenuLast",
"tab": "editor::ContextMenuNext",
"shift-tab": "editor::ContextMenuPrevious",
},
},
{
"context": "Editor && vim_mode == normal",
"bindings": {
"shift-tab": "pane::ActivatePreviousItem",
"tab": "pane::ActivateNextItem",
"space a": "outline::Toggle",
"space r": "editor::Rename",
"space x": "pane::CloseActiveItem",
"space X": "pane::CloseAllItems",
"space g g": "git_panel::Toggle",
"space g h": "editor::ToggleSelectedDiffHunks",
"space g b": "git::Blame",
"space f a": "pane::DeploySearch",
"space f w": "project_symbols::Toggle",
"space f f": "file_finder::Toggle",
"space space": "editor::FindAllReferences",
},
},
{
"context": "Terminal",
"bindings": {
"ctrl-t": "workspace::NewTerminal",
"ctrl-w": "pane::CloseActiveItem",
},
},
]
+86 -10
View File
@@ -6,13 +6,66 @@
// ╭─────────╮
// │ General │
// ╰─────────╯
"dap": {
"JavaScript": {
"enable_auto_updates": true,
"ignore_system_version": false,
"allow_binary_download": true
}
},
"lsp": {
"tailwindcss-language-server": {
"binary": {
"enable_auto_updates": true,
"allow_binary_download": true,
"ignore_system_version": false
},
"enable_lsp_tasks": true
},
"astro-language-server": {
"binary": {
"enable_auto_updates": true,
"ignore_system_version": false,
"allow_binary_download": true
},
"enable_lsp_tasks": true
},
"typescript-language-server": {
"binary": {
"enable_auto_updates": false,
"ignore_system_version": false,
"allow_binary_download": false
},
"enable_lsp_tasks": true
},
"json-language-server": {
"binary": {
"enable_auto_updates": true,
"ignore_system_version": true,
"allow_binary_download": true
},
"enable_lsp_tasks": true
}
},
"node": {
"allow_npm_install": true,
"allow_prettier_download": true,
"allow_binary_download": true
},
"active_pane_modifiers": {
"border_size": 0.0,
},
"text_rendering_mode": "platform_default",
"prettier": {
"allowed": true,
},
"tasks": {
"prefer_lsp": true,
},
"icon_theme": "Gram (Default)",
"proxy": "",
"use_system_window_tabs": false,
"window_decorations": "client",
"use_system_window_tabs": true,
"window_decorations": "server",
"status_bar": {
"active_encoding_button": "enabled",
"line_endings_button": true,
@@ -25,14 +78,14 @@
// ╭─────────╮
// │ Styling │
// ╰─────────╯
"theme": "Gruvbox Light Soft",
"theme": "Ayu Mirage",
"unnecessary_code_fade": 0.2,
// ╭──────╮
// │ Font │
// ╰──────╯
"ui_font_size": 10.0,
"ui_font_family": "JetBrainsMonoNL Nerd Font Mono",
"buffer_font_size": 10.0,
"ui_font_size": 9.0,
"ui_font_family": "JetBrainsMono Nerd Font",
"buffer_font_size": 9.0,
"buffer_font_family": "JetBrainsMono Nerd Font",
"buffer_font_weight": 400,
"buffer_line_height": "comfortable",
@@ -113,9 +166,11 @@
},
},
"title_bar": {
"show_branch_icon": true,
"show": false,
"show_user_picture": false,
"show_onboarding_banner": false,
"show_menus": false,
"show_menus": true,
"show_project_items": true,
"show_branch_name": true,
},
@@ -143,7 +198,8 @@
},
},
"preview_tabs": {
"enabled": false,
"enable_preview_multibuffer_from_code_navigation": false,
"enabled": true,
"enable_preview_from_file_finder": false,
"enable_keep_preview_on_code_navigation": false,
},
@@ -176,7 +232,7 @@
"tab_bar": {
"show": true,
"show_nav_history_buttons": false,
"show_tab_bar_buttons": true,
"show_tab_bar_buttons": "on_pane_focus",
},
"tabs": {
"show_diagnostics": "all",
@@ -208,7 +264,7 @@
},
// "font_family": null,
"font_features": null,
"font_size": 14,
"font_size": 9.0,
"line_height": "comfortable",
"option_as_meta": true,
"button": true,
@@ -227,7 +283,27 @@
"enable_language_server": true,
"use_autoclose": true,
"languages": {
"JSONC": {
// "formatter": "prettier",
"format_on_save": "on",
"preferred_line_length": 85,
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"],
},
},
"code_actions_on_format": {
"source.organizeImports": true,
},
},
"Astro": {
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"],
},
},
"tab_size": 4,
},
"HTML": {
Submodule
+1
Submodule zed added at 5efe72e2d7.