From d9879110d0422a566fa01d732556f4d5515e1738 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 14 Sep 2025 21:44:15 +0000 Subject: docs: update configs.md skip-checks: true --- doc/configs.md | 32 ++++++++++++++++++++++++++++++-- doc/configs.txt | 24 ++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/configs.md b/doc/configs.md index 2389c6a9..5b77d9f7 100644 --- a/doc/configs.md +++ b/doc/configs.md @@ -303,6 +303,7 @@ Nvim by running `:help lspconfig-all`. - [steep](#steep) - [stimulus_ls](#stimulus_ls) - [stylelint_lsp](#stylelint_lsp) +- [stylua](#stylua) - [stylua3p_ls](#stylua3p_ls) - [superhtml](#superhtml) - [svelte](#svelte) @@ -2345,11 +2346,11 @@ Default config: { editorInfo = { name = "Neovim", - version = "0.12.0-dev+g0f64f0f5b6" + version = "0.12.0-dev+ga897cc17a5" }, editorPluginInfo = { name = "Neovim", - version = "0.12.0-dev+g0f64f0f5b6" + version = "0.12.0-dev+ga897cc17a5" } } ``` @@ -11369,6 +11370,33 @@ Default config: --- +## stylua + +https://github.com/JohnnyMorganz/StyLua + +A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua + +Snippet to enable the language server: +```lua +vim.lsp.enable('stylua') +``` + +Default config: +- `cmd` : + ```lua + { "stylua", "--lsp" } + ``` +- `filetypes` : + ```lua + { "lua" } + ``` +- `root_markers` : + ```lua + { ".stylua.toml", "stylua.toml" } + ``` + +--- + ## stylua3p_ls https://github.com/antonk52/lua-3p-language-servers diff --git a/doc/configs.txt b/doc/configs.txt index 0fb7126c..0cdc99b9 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -1518,11 +1518,11 @@ Default config: { editorInfo = { name = "Neovim", - version = "0.12.0-dev+g0f64f0f5b6" + version = "0.12.0-dev+ga897cc17a5" }, editorPluginInfo = { name = "Neovim", - version = "0.12.0-dev+g0f64f0f5b6" + version = "0.12.0-dev+ga897cc17a5" } } - on_attach (use "gF" to view): ../lsp/copilot.lua:79 @@ -8388,6 +8388,26 @@ Default config: {} < +------------------------------------------------------------------------------ +stylua + +https://github.com/JohnnyMorganz/StyLua + +A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua + +Snippet to enable the language server: >lua + vim.lsp.enable('stylua') + + +Default config: +- cmd: >lua + { "stylua", "--lsp" } +- filetypes: >lua + { "lua" } +- root_markers: >lua + { ".stylua.toml", "stylua.toml" } +< + ------------------------------------------------------------------------------ stylua3p_ls -- cgit v1.2.3-70-g09d2