aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/configs.md32
-rw-r--r--doc/configs.txt24
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