Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add lua 3rd party language servers #3553

Merged
merged 2 commits into from
Jan 13, 2025
Merged

Conversation

antonk52
Copy link
Contributor

Per title. These servers make it possible to not need plugins like null-ls or none-ls if those are only used for lua tools.

@antonk52 antonk52 requested a review from glepnir as a code owner January 11, 2025 18:38
@antonk52 antonk52 changed the title Feat: add lua 3rd party language severs Feat: add lua 3rd party language servers Jan 11, 2025
default_config = {
cmd = { 'stylua-3p-language-server' },
filetypes = { 'lua' },
root_dir = util.root_pattern('.stylua.toml'),
Copy link
Contributor

@chrisgrieser chrisgrieser Jan 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also be a stylua.toml file (no leading .): https://github.com/JohnnyMorganz/StyLua#finding-the-configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed

return {
default_config = {
cmd = { 'stylua-3p-language-server' },
filetypes = { 'lua' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stylua also supports luau: https://luau.org/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the LS does not currently support it

@justinmk justinmk merged commit ee56b73 into neovim:master Jan 13, 2025
11 checks passed
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.

4 participants