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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lua/lspconfig/configs/selene3p_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local util = require('lspconfig.util')

return {
default_config = {
cmd = { 'selene-3p-language-server' },
filetypes = { 'lua' },
root_dir = util.root_pattern('selene.toml'),
},
docs = {
description = [[
https://github.com/antonk52/lua-3p-language-servers
3rd party Language Server for Selene lua linter
]],
},
}
16 changes: 16 additions & 0 deletions lua/lspconfig/configs/stylua3p_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local util = require('lspconfig.util')

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

root_dir = util.root_pattern('.stylua.toml', 'stylua.toml'),
},
docs = {
description = [[
https://github.com/antonk52/lua-3p-language-servers
3rd party Language Server for Stylua lua formatter
]],
},
}
Loading