Skip to content

Conversation

@PolyMeilex
Copy link
Contributor

StyLua now supports LSP out of the box.

@justinmk justinmk merged commit 345560d into neovim:master Sep 14, 2025
5 of 6 checks passed
@PolyMeilex PolyMeilex deleted the stylua branch September 14, 2025 21:48
@dmitrii-galantsev
Copy link

in case others are also confused you need stylua 2.2.0 or above.
My stylua from nixpkg was 2.1.0 and confused me with error: Found argument '--lsp' which wasn't expected, or isn't valid in this context.

lan1812783 added a commit to lan1812783/nvim that referenced this pull request Oct 19, 2025
- LSP:
  - Use `after/lsp/` directory to configure LSP behavior
    (https://neovim.io/doc/user/lsp.html#lsp-faq) instead of manually
    call `vim.lsp.enable()` on each LSP configuration
  - Remap `grr` to not include declaration
  - Add format on save autocmd if the LSP server supports it
  - Remove the usage of the deprecated `vim.lsp.protocol.Methods`
    (neovim/neovim#35998) in favor of using their string literal
    counterparts
  - Use `stylua` via LSP mode (since v2.2.0) instead of via none-ls as
    the formatter
    - JohnnyMorganz/StyLua#970
    - neovim/nvim-lspconfig#4073
    - mason-org/mason-registry#11613
  - Add `fidget.nvim` plugin to visually see LSP progress messages
  - Add `buf-ls` LSP server to support Protocol Buffers development
- Add `winborder` option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants