diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-09-14 21:44:15 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-09-14 21:44:15 +0000 |
| commit | d9879110d0422a566fa01d732556f4d5515e1738 (patch) | |
| tree | 883c4980d773e6625cd7b75c801e51d5341cd282 /doc | |
| parent | feat: StyLua Lua formatter #4073 (diff) | |
| download | nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.tar nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.tar.gz nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.tar.bz2 nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.tar.lz nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.tar.xz nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.tar.zst nvim-lspconfig-d9879110d0422a566fa01d732556f4d5515e1738.zip | |
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/configs.md | 32 | ||||
| -rw-r--r-- | doc/configs.txt | 24 |
2 files changed, 52 insertions, 4 deletions
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 @@ -8389,6 +8389,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 https://github.com/antonk52/lua-3p-language-servers |
