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
end
if args.bang then vim.cmd("w") end
if args.bang then vim.cmd('w') end
end
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": {
"inline_blame": {

View file

@ -7,6 +7,7 @@
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"formatter": "language_server",
"zoomed_padding": false,
"active_pane_modifiers": {
"border_size": -1.0
@ -43,69 +44,137 @@
"show_parameter_hints": true,
"show_type_hints": true,
"show_value_hints": true,
"enabled": true,
"enabled": true
},
"languages": {
"PHP": {
"Lua": {
"inlay_hints": {
"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": {
"enable_language_server": true,
"language_servers": ["rumdl"],
"formatter": "language_server",
"use_on_type_format": true,
"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": {
"inline_blame": {
"enabled": false,
},
"enabled": false
}
},
"agent": {
"button": true,
"model_parameters": [],
"model_parameters": []
},
"collaboration_panel": {
"button": false,
"button": false
},
"notification_panel": {
"button": false,
"button": false
},
"git_panel": {
"tree_view": true,
"collapse_untracked_diff": false,
"sort_by_path": false,
"status_style": "label_color",
"status_style": "label_color"
},
"bottom_dock_layout": "contained",
"preview_tabs": {
"enable_preview_from_file_finder": true,
"enable_preview_from_file_finder": true
},
"tabs": {
"show_diagnostics": "errors",
"file_icons": true,
"git_status": true,
"git_status": true
},
"search": {
"center_on_match": true,
"button": false,
"button": false
},
"diagnostics": {
"inline": {
"min_column": 0,
"padding": 4,
"enabled": true,
"enabled": true
},
"button": true,
"button": true
},
"debugger": {
"button": true,
"button": true
},
"status_bar": {
"cursor_position_button": true,
"active_language_button": true,
"active_language_button": true
},
"project_panel": {
"sort_mode": "directories_first",
@ -115,13 +184,13 @@
"starts_open": false,
"entry_spacing": "standard",
"hide_gitignore": false,
"button": true,
"button": true
},
"toolbar": {
"breadcrumbs": true,
"selections_menu": true,
"quick_actions": false,
"code_actions": true,
"code_actions": true
},
"horizontal_scroll_margin": 25.0,
"vertical_scroll_margin": 15.0,
@ -130,7 +199,7 @@
"show_pinned_tabs_in_separate_row": false,
"show_tab_bar_buttons": false,
"show_nav_history_buttons": false,
"show": true,
"show": true
},
"title_bar": {
"show_user_menu": false,
@ -140,23 +209,23 @@
"show_onboarding_banner": false,
"show_menus": false,
"show_user_picture": false,
"show_sign_in": false,
"show_sign_in": false
},
"terminal": {
"toolbar": {
"breadcrumbs": false
},
"button": true,
"font_size": 14.0,
"font_size": 14.0
},
"indent_guides": {
"active_line_width": 1,
"background_coloring": "disabled",
"coloring": "fixed",
"coloring": "fixed"
},
"tab_size": 2,
"scrollbar": {
"show": "never",
"show": "never"
},
"auto_signature_help": true,
"ui_font_family": "DejaVu Sans",
@ -164,7 +233,7 @@
"icon_theme": {
"mode": "system",
"light": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato",
"dark": "Catppuccin Macchiato"
},
"ssh_connections": [
{
@ -172,50 +241,50 @@
"args": [],
"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",
"args": [],
"projects": [
{
"paths": ["/opt/stacks"],
},
"paths": ["/opt/stacks"]
}
],
"nickname": "T-800",
"nickname": "T-800"
},
{
"host": "getwfr-2-piloto",
"args": [],
"projects": [],
"projects": []
},
{
"host": "saria",
"args": [],
"projects": [
{
"paths": ["/opt/stacks"],
},
"paths": ["/opt/stacks"]
}
],
"nickname": "Saria",
"nickname": "Saria"
},
{
"host": "getwfr-2-prod",
"args": [],
"projects": [
{
"paths": ["/bcn/workflow/produccion/php/./"],
},
],
},
"paths": ["/bcn/workflow/produccion/php/./"]
}
]
}
],
"disable_ai": false,
"auto_update": false,
@ -225,14 +294,28 @@
"theme": {
"mode": "system",
"light": "Catppuccin Macchiato",
"dark": "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"],
},
"arguments": ["server"]
}
},
"rust-analyzer": {
"enable_lsp_tasks": true,
@ -241,13 +324,27 @@
"maxLength": null,
"lifetimeElisionHints": {
"enable": "skip_trivial",
"useParameterNames": true,
"useParameterNames": true
},
"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"
}
}
}
}
}
}