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"
}
}
}
}
}
} }