feat: Stylua LSP server#970
Merged
JohnnyMorganz merged 8 commits intoJohnnyMorganz:mainfrom Sep 14, 2025
PolyMeilex:lsp
Merged
Conversation
Owner
|
Thanks for this, the implementation seems pretty reasonable to me! I still need to give this a bit of a think though about whether I want to "bloat" stylua with this (tbh, i don't think it is much bloat). But it does seem like a nice feature to have, and would allow pretty easy set up with any IDE |
JohnnyMorganz
approved these changes
Sep 14, 2025
Owner
JohnnyMorganz
left a comment
There was a problem hiding this comment.
Thanks for this implementation, going to move ahead with this
I restructured it slightly and added support for range formatting. I've also set up some integration tests.
Ideally we use output_diff to compute smaller text edits, but I'll leave that for later
Contributor
Author
|
Lovely, I have been using this daily for the last 5 months without any issues so I'm happy to see it land 🚀 ❤️ |
2 tasks
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #936
For now I did not get around to porting the VsCode extension to LSP, so the easiest way to try this out is to use nvim: