aboutsummaryrefslogtreecommitdiffstats
path: root/doc/configs.md
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-09-14 21:44:15 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-09-14 21:44:15 +0000
commitd9879110d0422a566fa01d732556f4d5515e1738 (patch)
tree883c4980d773e6625cd7b75c801e51d5341cd282 /doc/configs.md
parentfeat: StyLua Lua formatter #4073 (diff)
downloadnvim-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/configs.md')
-rw-r--r--doc/configs.md32
1 files changed, 30 insertions, 2 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