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,6 +7,7 @@
// 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)
{ {
"formatter": "language_server",
"zoomed_padding": false, "zoomed_padding": false,
"active_pane_modifiers": { "active_pane_modifiers": {
"border_size": -1.0 "border_size": -1.0
@ -43,69 +44,137 @@
"show_parameter_hints": true, "show_parameter_hints": true,
"show_type_hints": true, "show_type_hints": true,
"show_value_hints": true, "show_value_hints": true,
"enabled": true, "enabled": true
}, },
"languages": { "languages": {
"PHP": { "Lua": {
"inlay_hints": { "inlay_hints": {
"enabled": true, "enabled": true,
"show_type_hints": true,
"show_parameter_hints": true,
"show_other_hints": true
}, },
"format_on_save": "on"
},
"Kdl": {
"formatter": {
"external": {
"command": "kdlfmt",
"arguments": ["format", "-"]
}
}
},
"PHP": {
"inlay_hints": {
"enabled": true
}
}, },
"Markdown": { "Markdown": {
"enable_language_server": true, "enable_language_server": true,
"language_servers": ["rumdl"], "language_servers": ["rumdl"],
"formatter": "language_server", "use_on_type_format": true,
"format_on_save": "on", "format_on_save": "on",
"formatter": "language_server"
}, },
"JavaScript": {
"language_servers": ["biome"],
"formatter": "language_server",
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true,
"source.action.useSortedKeys.biome": true
}
},
"TypeScript": {
"language_servers": ["biome"],
"formatter": "language_server",
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true,
"source.action.useSortedKeys.biome": true
}
},
"TSX": {
"language_servers": ["biome"],
"formatter": "language_server",
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true,
"source.action.useSortedKeys.biome": true
}
},
"CSS": {
"language_servers": ["biome"],
"formatter": "language_server"
},
"JSON": {
"language_servers": ["biome"],
"formatter": "language_server",
"code_actions_on_format": {
"source.action.useSortedKeys.biome": true,
"source.fixAll.biome": true
}
},
"JSONC": {
"language_servers": ["biome"],
"formatter": "language_server",
"code_actions_on_format": {
"source.action.useSortedKeys.biome": true,
"source.fixAll.biome": true
}
},
"HTML": {
"formatter": "language_server"
}
}, },
"git": { "git": {
"inline_blame": { "inline_blame": {
"enabled": false, "enabled": false
}, }
}, },
"agent": { "agent": {
"button": true, "button": true,
"model_parameters": [], "model_parameters": []
}, },
"collaboration_panel": { "collaboration_panel": {
"button": false, "button": false
}, },
"notification_panel": { "notification_panel": {
"button": false, "button": false
}, },
"git_panel": { "git_panel": {
"tree_view": true, "tree_view": true,
"collapse_untracked_diff": false, "collapse_untracked_diff": false,
"sort_by_path": false, "sort_by_path": false,
"status_style": "label_color", "status_style": "label_color"
}, },
"bottom_dock_layout": "contained", "bottom_dock_layout": "contained",
"preview_tabs": { "preview_tabs": {
"enable_preview_from_file_finder": true, "enable_preview_from_file_finder": true
}, },
"tabs": { "tabs": {
"show_diagnostics": "errors", "show_diagnostics": "errors",
"file_icons": true, "file_icons": true,
"git_status": true, "git_status": true
}, },
"search": { "search": {
"center_on_match": true, "center_on_match": true,
"button": false, "button": false
}, },
"diagnostics": { "diagnostics": {
"inline": { "inline": {
"min_column": 0, "min_column": 0,
"padding": 4, "padding": 4,
"enabled": true, "enabled": true
}, },
"button": true, "button": true
}, },
"debugger": { "debugger": {
"button": true, "button": true
}, },
"status_bar": { "status_bar": {
"cursor_position_button": true, "cursor_position_button": true,
"active_language_button": true, "active_language_button": true
}, },
"project_panel": { "project_panel": {
"sort_mode": "directories_first", "sort_mode": "directories_first",
@ -115,13 +184,13 @@
"starts_open": false, "starts_open": false,
"entry_spacing": "standard", "entry_spacing": "standard",
"hide_gitignore": false, "hide_gitignore": false,
"button": true, "button": true
}, },
"toolbar": { "toolbar": {
"breadcrumbs": true, "breadcrumbs": true,
"selections_menu": true, "selections_menu": true,
"quick_actions": false, "quick_actions": false,
"code_actions": true, "code_actions": true
}, },
"horizontal_scroll_margin": 25.0, "horizontal_scroll_margin": 25.0,
"vertical_scroll_margin": 15.0, "vertical_scroll_margin": 15.0,
@ -130,7 +199,7 @@
"show_pinned_tabs_in_separate_row": false, "show_pinned_tabs_in_separate_row": false,
"show_tab_bar_buttons": false, "show_tab_bar_buttons": false,
"show_nav_history_buttons": false, "show_nav_history_buttons": false,
"show": true, "show": true
}, },
"title_bar": { "title_bar": {
"show_user_menu": false, "show_user_menu": false,
@ -140,23 +209,23 @@
"show_onboarding_banner": false, "show_onboarding_banner": false,
"show_menus": false, "show_menus": false,
"show_user_picture": false, "show_user_picture": false,
"show_sign_in": false, "show_sign_in": false
}, },
"terminal": { "terminal": {
"toolbar": { "toolbar": {
"breadcrumbs": false "breadcrumbs": false
}, },
"button": true, "button": true,
"font_size": 14.0, "font_size": 14.0
}, },
"indent_guides": { "indent_guides": {
"active_line_width": 1, "active_line_width": 1,
"background_coloring": "disabled", "background_coloring": "disabled",
"coloring": "fixed", "coloring": "fixed"
}, },
"tab_size": 2, "tab_size": 2,
"scrollbar": { "scrollbar": {
"show": "never", "show": "never"
}, },
"auto_signature_help": true, "auto_signature_help": true,
"ui_font_family": "DejaVu Sans", "ui_font_family": "DejaVu Sans",
@ -164,7 +233,7 @@
"icon_theme": { "icon_theme": {
"mode": "system", "mode": "system",
"light": "Catppuccin Macchiato", "light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato", "dark": "Catppuccin Macchiato"
}, },
"ssh_connections": [ "ssh_connections": [
{ {
@ -172,50 +241,50 @@
"args": [], "args": [],
"projects": [ "projects": [
{ {
"paths": ["/bcn/invoice-chile/scripts"], "paths": ["/bcn/invoice-chile/scripts"]
}, },
{ {
"paths": ["/bcn/workflow"], "paths": ["/bcn/workflow"]
}, },
{ {
"paths": ["/bcn/workflow/piloto/php/./"], "paths": ["/bcn/workflow/piloto/php/./"]
}, }
], ]
}, },
{ {
"host": "t-800", "host": "t-800",
"args": [], "args": [],
"projects": [ "projects": [
{ {
"paths": ["/opt/stacks"], "paths": ["/opt/stacks"]
}, }
], ],
"nickname": "T-800", "nickname": "T-800"
}, },
{ {
"host": "getwfr-2-piloto", "host": "getwfr-2-piloto",
"args": [], "args": [],
"projects": [], "projects": []
}, },
{ {
"host": "saria", "host": "saria",
"args": [], "args": [],
"projects": [ "projects": [
{ {
"paths": ["/opt/stacks"], "paths": ["/opt/stacks"]
}, }
], ],
"nickname": "Saria", "nickname": "Saria"
}, },
{ {
"host": "getwfr-2-prod", "host": "getwfr-2-prod",
"args": [], "args": [],
"projects": [ "projects": [
{ {
"paths": ["/bcn/workflow/produccion/php/./"], "paths": ["/bcn/workflow/produccion/php/./"]
}, }
], ]
}, }
], ],
"disable_ai": false, "disable_ai": false,
"auto_update": false, "auto_update": false,
@ -225,14 +294,28 @@
"theme": { "theme": {
"mode": "system", "mode": "system",
"light": "Catppuccin Macchiato", "light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato", "dark": "Catppuccin Macchiato"
}, },
"lsp": { "lsp": {
"biome": {
"enable_lsp_tasks": true,
"settings": {
"formatter": {
"attributePosition": "multiline",
"expand": "always"
},
"assist": {
"actions": {
"source": { "useSortedKeys": "on" }
}
}
}
},
"rumdl": { "rumdl": {
"binary": { "binary": {
"path": "rumdl", "path": "rumdl",
"arguments": ["server"], "arguments": ["server"]
}, }
}, },
"rust-analyzer": { "rust-analyzer": {
"enable_lsp_tasks": true, "enable_lsp_tasks": true,
@ -241,13 +324,27 @@
"maxLength": null, "maxLength": null,
"lifetimeElisionHints": { "lifetimeElisionHints": {
"enable": "skip_trivial", "enable": "skip_trivial",
"useParameterNames": true, "useParameterNames": true
}, },
"closureReturnTypeHints": { "closureReturnTypeHints": {
"enable": "always", "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"
}
}
}
}
}
} }