add luals config to zed

This commit is contained in:
Alexander Navarro 2026-02-05 10:11:13 -03:00
parent c5bc93250e
commit 6b2c9b9033
5 changed files with 410 additions and 311 deletions

10
.luarc.json Normal file
View file

@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime.version": "Lua 5.4",
"format.enable": true,
"workspace.library": ["/usr/share/nvim/runtime"],
"hint": {
"enable": true,
"setType": true
}
}

View file

@ -99,7 +99,7 @@ return {
return return
end end
if args.bang then vim.cmd("w") end if args.bang then vim.cmd('w') end
end end
require("conform").format({ require("conform").format({

View file

@ -1,11 +1,3 @@
// 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": { "git": {
"inline_blame": { "inline_blame": {

View file

@ -7,247 +7,344 @@
// custom settings, run `zed: open default settings` from the // custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p) // command palette (cmd-shift-p / ctrl-shift-p)
{ {
"zoomed_padding": false, "formatter": "language_server",
"active_pane_modifiers": { "zoomed_padding": false,
"border_size": -1.0 "active_pane_modifiers": {
}, "border_size": -1.0
"window_decorations": "client", },
"close_on_file_delete": true, "window_decorations": "client",
"file_finder": { "close_on_file_delete": true,
"modal_max_width": "medium" "file_finder": {
}, "modal_max_width": "medium"
"use_smartcase_search": true, },
"colorize_brackets": true, "use_smartcase_search": true,
"show_whitespaces": "selection", "colorize_brackets": true,
"always_treat_brackets_as_autoclosed": false, "show_whitespaces": "selection",
"vim": { "always_treat_brackets_as_autoclosed": false,
"use_smartcase_find": true "vim": {
}, "use_smartcase_find": true
"sticky_scroll": { },
"enabled": true "sticky_scroll": {
}, "enabled": true
"scroll_beyond_last_line": "vertical_scroll_margin", },
"which_key": { "scroll_beyond_last_line": "vertical_scroll_margin",
"enabled": true "which_key": {
}, "enabled": true
"rounded_selection": true, },
"current_line_highlight": "gutter", "rounded_selection": true,
"cursor_shape": "bar", "current_line_highlight": "gutter",
"session": { "cursor_shape": "bar",
"trust_all_worktrees": true "session": {
}, "trust_all_worktrees": true
"lsp_document_colors": "inlay", },
"inlay_hints": { "lsp_document_colors": "inlay",
"show_background": false, "inlay_hints": {
"show_other_hints": true, "show_background": false,
"show_parameter_hints": true, "show_other_hints": true,
"show_type_hints": true, "show_parameter_hints": true,
"show_value_hints": true, "show_type_hints": true,
"enabled": true, "show_value_hints": true,
}, "enabled": true
"languages": { },
"PHP": { "languages": {
"inlay_hints": { "Lua": {
"enabled": true, "inlay_hints": {
}, "enabled": true,
}, "show_type_hints": true,
"Markdown": { "show_parameter_hints": true,
"enable_language_server": true, "show_other_hints": true
"language_servers": ["rumdl"], },
"formatter": "language_server", "format_on_save": "on"
"format_on_save": "on", },
}, "Kdl": {
}, "formatter": {
"git": { "external": {
"inline_blame": { "command": "kdlfmt",
"enabled": false, "arguments": ["format", "-"]
}, }
}, }
"agent": { },
"button": true, "PHP": {
"model_parameters": [], "inlay_hints": {
}, "enabled": true
"collaboration_panel": { }
"button": false, },
}, "Markdown": {
"notification_panel": { "enable_language_server": true,
"button": false, "language_servers": ["rumdl"],
}, "use_on_type_format": true,
"git_panel": { "format_on_save": "on",
"tree_view": true, "formatter": "language_server"
"collapse_untracked_diff": false, },
"sort_by_path": false, "JavaScript": {
"status_style": "label_color", "language_servers": ["biome"],
}, "formatter": "language_server",
"bottom_dock_layout": "contained", "code_actions_on_format": {
"preview_tabs": { "source.fixAll.biome": true,
"enable_preview_from_file_finder": true, "source.organizeImports.biome": true,
}, "source.action.useSortedKeys.biome": true
"tabs": { }
"show_diagnostics": "errors", },
"file_icons": true, "TypeScript": {
"git_status": true, "language_servers": ["biome"],
}, "formatter": "language_server",
"search": { "code_actions_on_format": {
"center_on_match": true, "source.fixAll.biome": true,
"button": false, "source.organizeImports.biome": true,
}, "source.action.useSortedKeys.biome": true
"diagnostics": { }
"inline": { },
"min_column": 0, "TSX": {
"padding": 4, "language_servers": ["biome"],
"enabled": true, "formatter": "language_server",
}, "code_actions_on_format": {
"button": true, "source.fixAll.biome": true,
}, "source.organizeImports.biome": true,
"debugger": { "source.action.useSortedKeys.biome": true
"button": true, }
}, },
"status_bar": { "CSS": {
"cursor_position_button": true, "language_servers": ["biome"],
"active_language_button": true, "formatter": "language_server"
}, },
"project_panel": { "JSON": {
"sort_mode": "directories_first", "language_servers": ["biome"],
"hide_hidden": false, "formatter": "language_server",
"show_diagnostics": "errors", "code_actions_on_format": {
"hide_root": true, "source.action.useSortedKeys.biome": true,
"starts_open": false, "source.fixAll.biome": true
"entry_spacing": "standard", }
"hide_gitignore": false, },
"button": true, "JSONC": {
}, "language_servers": ["biome"],
"toolbar": { "formatter": "language_server",
"breadcrumbs": true, "code_actions_on_format": {
"selections_menu": true, "source.action.useSortedKeys.biome": true,
"quick_actions": false, "source.fixAll.biome": true
"code_actions": true, }
}, },
"horizontal_scroll_margin": 25.0, "HTML": {
"vertical_scroll_margin": 15.0, "formatter": "language_server"
"use_system_window_tabs": false, }
"tab_bar": { },
"show_pinned_tabs_in_separate_row": false, "git": {
"show_tab_bar_buttons": false, "inline_blame": {
"show_nav_history_buttons": false, "enabled": false
"show": true, }
}, },
"title_bar": { "agent": {
"show_user_menu": false, "button": true,
"show_branch_icon": true, "model_parameters": []
"show_branch_name": true, },
"show_project_items": true, "collaboration_panel": {
"show_onboarding_banner": false, "button": false
"show_menus": false, },
"show_user_picture": false, "notification_panel": {
"show_sign_in": false, "button": false
}, },
"terminal": { "git_panel": {
"toolbar": { "tree_view": true,
"breadcrumbs": false "collapse_untracked_diff": false,
}, "sort_by_path": false,
"button": true, "status_style": "label_color"
"font_size": 14.0, },
}, "bottom_dock_layout": "contained",
"indent_guides": { "preview_tabs": {
"active_line_width": 1, "enable_preview_from_file_finder": true
"background_coloring": "disabled", },
"coloring": "fixed", "tabs": {
}, "show_diagnostics": "errors",
"tab_size": 2, "file_icons": true,
"scrollbar": { "git_status": true
"show": "never", },
}, "search": {
"auto_signature_help": true, "center_on_match": true,
"ui_font_family": "DejaVu Sans", "button": false
"buffer_font_family": "JetBrainsMono Nerd Font", },
"icon_theme": { "diagnostics": {
"mode": "system", "inline": {
"light": "Catppuccin Macchiato", "min_column": 0,
"dark": "Catppuccin Macchiato", "padding": 4,
}, "enabled": true
"ssh_connections": [ },
{ "button": true
"host": "GetDTE-Prod-App", },
"args": [], "debugger": {
"projects": [ "button": true
{ },
"paths": ["/bcn/invoice-chile/scripts"], "status_bar": {
}, "cursor_position_button": true,
{ "active_language_button": true
"paths": ["/bcn/workflow"], },
}, "project_panel": {
{ "sort_mode": "directories_first",
"paths": ["/bcn/workflow/piloto/php/./"], "hide_hidden": false,
}, "show_diagnostics": "errors",
], "hide_root": true,
}, "starts_open": false,
{ "entry_spacing": "standard",
"host": "t-800", "hide_gitignore": false,
"args": [], "button": true
"projects": [ },
{ "toolbar": {
"paths": ["/opt/stacks"], "breadcrumbs": true,
}, "selections_menu": true,
], "quick_actions": false,
"nickname": "T-800", "code_actions": true
}, },
{ "horizontal_scroll_margin": 25.0,
"host": "getwfr-2-piloto", "vertical_scroll_margin": 15.0,
"args": [], "use_system_window_tabs": false,
"projects": [], "tab_bar": {
}, "show_pinned_tabs_in_separate_row": false,
{ "show_tab_bar_buttons": false,
"host": "saria", "show_nav_history_buttons": false,
"args": [], "show": true
"projects": [ },
{ "title_bar": {
"paths": ["/opt/stacks"], "show_user_menu": false,
}, "show_branch_icon": true,
], "show_branch_name": true,
"nickname": "Saria", "show_project_items": true,
}, "show_onboarding_banner": false,
{ "show_menus": false,
"host": "getwfr-2-prod", "show_user_picture": false,
"args": [], "show_sign_in": false
"projects": [ },
{ "terminal": {
"paths": ["/bcn/workflow/produccion/php/./"], "toolbar": {
}, "breadcrumbs": false
], },
}, "button": true,
], "font_size": 14.0
"disable_ai": false, },
"auto_update": false, "indent_guides": {
"vim_mode": true, "active_line_width": 1,
"ui_font_size": 16.0, "background_coloring": "disabled",
"buffer_font_size": 14.0, "coloring": "fixed"
"theme": { },
"mode": "system", "tab_size": 2,
"light": "Catppuccin Macchiato", "scrollbar": {
"dark": "Catppuccin Macchiato", "show": "never"
}, },
"lsp": { "auto_signature_help": true,
"rumdl": { "ui_font_family": "DejaVu Sans",
"binary": { "buffer_font_family": "JetBrainsMono Nerd Font",
"path": "rumdl", "icon_theme": {
"arguments": ["server"], "mode": "system",
}, "light": "Catppuccin Macchiato",
}, "dark": "Catppuccin Macchiato"
"rust-analyzer": { },
"enable_lsp_tasks": true, "ssh_connections": [
"initialization_options": { {
"inlayHints": { "host": "GetDTE-Prod-App",
"maxLength": null, "args": [],
"lifetimeElisionHints": { "projects": [
"enable": "skip_trivial", {
"useParameterNames": true, "paths": ["/bcn/invoice-chile/scripts"]
}, },
"closureReturnTypeHints": { {
"enable": "always", "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": {
"biome": {
"enable_lsp_tasks": true,
"settings": {
"formatter": {
"attributePosition": "multiline",
"expand": "always"
},
"assist": {
"actions": {
"source": { "useSortedKeys": "on" }
}
}
}
},
"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"
}
}
}
},
"vscode-html-language-server": {
"settings": {
"html": {
"format": {
// Indent under <html> and <head> (default: false)
"indentInnerHtml": true,
// Disable formatting inside <svg> or <script>
"contentUnformatted": "svg,script",
// Add an extra newline before <div> and <p>
"extraLiners": "div,p"
}
}
}
}
}
} }

View file

@ -271,90 +271,90 @@ plugins {
// eg. "https://example.com/my-plugin.wasm" // eg. "https://example.com/my-plugin.wasm"
load_plugins { load_plugins {
} }
// Use a simplified UI without special fonts (arrow glyphs) // Use a simplified UI without special fonts (arrow glyphs)
// Options: // Options:
// - true // - true
// - false (Default) // - false (Default)
// //
simplified_ui true simplified_ui true
// Choose the theme that is specified in the themes section. // Choose the theme that is specified in the themes section.
// Default: default // Default: default
// //
theme "catppuccin-macchiato" theme "catppuccin-macchiato"
// Choose the base input mode of zellij. // Choose the base input mode of zellij.
// Default: normal // Default: normal
// //
default_mode "locked" default_mode "locked"
// Choose the path to the default shell that zellij will use for opening new panes // Choose the path to the default shell that zellij will use for opening new panes
// Default: $SHELL // Default: $SHELL
// //
// default_shell "fish" // default_shell "fish"
// Choose the path to override cwd that zellij will use for opening new panes // Choose the path to override cwd that zellij will use for opening new panes
// //
// default_cwd "/tmp" // default_cwd "/tmp"
// The name of the default layout to load on startup // The name of the default layout to load on startup
// Default: "default" // Default: "default"
// //
// default_layout "compact" // default_layout "compact"
// The folder in which Zellij will look for layouts // The folder in which Zellij will look for layouts
// (Requires restart) // (Requires restart)
// //
// layout_dir "/tmp" // layout_dir "/tmp"
// The folder in which Zellij will look for themes // The folder in which Zellij will look for themes
// (Requires restart) // (Requires restart)
// //
// theme_dir "/tmp" // theme_dir "/tmp"
// Toggle enabling the mouse mode. // Toggle enabling the mouse mode.
// On certain configurations, or terminals this could // On certain configurations, or terminals this could
// potentially interfere with copying text. // potentially interfere with copying text.
// Options: // Options:
// - true (default) // - true (default)
// - false // - false
// //
// mouse_mode false // mouse_mode false
// Toggle having pane frames around the panes // Toggle having pane frames around the panes
// Options: // Options:
// - true (default, enabled) // - true (default, enabled)
// - false // - false
// //
// pane_frames false // pane_frames false
// When attaching to an existing session with other users, // When attaching to an existing session with other users,
// should the session be mirrored (true) // should the session be mirrored (true)
// or should each user have their own cursor (false) // or should each user have their own cursor (false)
// (Requires restart) // (Requires restart)
// Default: false // Default: false
// //
// mirror_session true // mirror_session true
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP // Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
// eg. when terminal window with an active zellij session is closed // eg. when terminal window with an active zellij session is closed
// (Requires restart) // (Requires restart)
// Options: // Options:
// - detach (Default) // - detach (Default)
// - quit // - quit
// //
// on_force_close "quit" // on_force_close "quit"
// Configure the scroll back buffer size // Configure the scroll back buffer size
// This is the number of lines zellij stores for each pane in the scroll back // This is the number of lines zellij stores for each pane in the scroll back
// buffer. Excess number of lines are discarded in a FIFO fashion. // buffer. Excess number of lines are discarded in a FIFO fashion.
// (Requires restart) // (Requires restart)
// Valid values: positive integers // Valid values: positive integers
// Default value: 10000 // Default value: 10000
// //
// scroll_buffer_size 10000 // scroll_buffer_size 10000
// Provide a command to execute when copying text. The text will be piped to // Provide a command to execute when copying text. The text will be piped to
// the stdin of the program to perform the copy. This can be used with // the stdin of the program to perform the copy. This can be used with
// terminal emulators which do not support the OSC 52 ANSI control sequence // terminal emulators which do not support the OSC 52 ANSI control sequence
@ -364,102 +364,102 @@ default_mode "locked"
// copy_command "xclip -selection clipboard" // x11 // copy_command "xclip -selection clipboard" // x11
// copy_command "wl-copy" // wayland // copy_command "wl-copy" // wayland
// copy_command "pbcopy" // osx // copy_command "pbcopy" // osx
// //
// copy_command "pbcopy" // copy_command "pbcopy"
// Choose the destination for copied text // Choose the destination for copied text
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard. // Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
// Does not apply when using copy_command. // Does not apply when using copy_command.
// Options: // Options:
// - system (default) // - system (default)
// - primary // - primary
// //
// copy_clipboard "primary" // copy_clipboard "primary"
// Enable automatic copying (and clearing) of selection when releasing mouse // Enable automatic copying (and clearing) of selection when releasing mouse
// Default: true // Default: true
// //
// copy_on_select true // copy_on_select true
// Path to the default editor to use to edit pane scrollbuffer // Path to the default editor to use to edit pane scrollbuffer
// Default: $EDITOR or $VISUAL // Default: $EDITOR or $VISUAL
// scrollback_editor "/usr/bin/vim" // scrollback_editor "/usr/bin/vim"
// A fixed name to always give the Zellij session. // A fixed name to always give the Zellij session.
// Consider also setting `attach_to_session true,` // Consider also setting `attach_to_session true,`
// otherwise this will error if such a session exists. // otherwise this will error if such a session exists.
// Default: <RANDOM> // Default: <RANDOM>
// //
// session_name "My singleton session" // session_name "My singleton session"
// When `session_name` is provided, attaches to that session // When `session_name` is provided, attaches to that session
// if it is already running or creates it otherwise. // if it is already running or creates it otherwise.
// Default: false // Default: false
// //
attach_to_session true attach_to_session true
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible // Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
// Options: // Options:
// - true (default) // - true (default)
// - false // - false
// //
// auto_layout false // auto_layout false
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected // Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
// Options: // Options:
// - true (default) // - true (default)
// - false // - false
// //
// session_serialization false // session_serialization false
// Whether pane viewports are serialized along with the session, default is false // Whether pane viewports are serialized along with the session, default is false
// Options: // Options:
// - true // - true
// - false (default) // - false (default)
// //
// serialize_pane_viewport false // serialize_pane_viewport false
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0 // Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
// defaults to the scrollback size. If this number is higher than the scrollback size, it will // defaults to the scrollback size. If this number is higher than the scrollback size, it will
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true. // also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
// //
// scrollback_lines_to_serialize 10000 // scrollback_lines_to_serialize 10000
// Enable or disable the rendering of styled and colored underlines (undercurl). // Enable or disable the rendering of styled and colored underlines (undercurl).
// May need to be disabled for certain unsupported terminals // May need to be disabled for certain unsupported terminals
// (Requires restart) // (Requires restart)
// Default: true // Default: true
// //
// styled_underlines false // styled_underlines false
// How often in seconds sessions are serialized // How often in seconds sessions are serialized
// //
// serialization_interval 10000 // serialization_interval 10000
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know // Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
// metadata info on this session) // metadata info on this session)
// (Requires restart) // (Requires restart)
// Default: false // Default: false
// //
// disable_session_metadata false // disable_session_metadata false
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it) // Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
// (Requires restart) // (Requires restart)
// Default: true (if the host terminal supports it) // Default: true (if the host terminal supports it)
// //
// support_kitty_keyboard_protocol false // support_kitty_keyboard_protocol false
// Whether to stack panes when resizing beyond a certain size // Whether to stack panes when resizing beyond a certain size
// Default: true // Default: true
// //
// stacked_resize false // stacked_resize false
// Whether to show tips on startup // Whether to show tips on startup
// Default: true // Default: true
// //
show_startup_tips false show_startup_tips false
// Whether to show release notes on first version run // Whether to show release notes on first version run
// Default: true // Default: true
// //
// show_release_notes false // show_release_notes false