From ee56b735daa3b5d548284c92a7e1778d5cf2affb Mon Sep 17 00:00:00 2001 From: Anton Kastritskii Date: Mon, 13 Jan 2025 07:41:20 +0000 Subject: feat: lua 3rd party language servers #3553 --- lua/lspconfig/configs/selene3p_ls.lua | 16 ++++++++++++++++ lua/lspconfig/configs/stylua3p_ls.lua | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lua/lspconfig/configs/selene3p_ls.lua create mode 100644 lua/lspconfig/configs/stylua3p_ls.lua (limited to 'lua') diff --git a/lua/lspconfig/configs/selene3p_ls.lua b/lua/lspconfig/configs/selene3p_ls.lua new file mode 100644 index 00000000..ea6377ec --- /dev/null +++ b/lua/lspconfig/configs/selene3p_ls.lua @@ -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 +]], + }, +} diff --git a/lua/lspconfig/configs/stylua3p_ls.lua b/lua/lspconfig/configs/stylua3p_ls.lua new file mode 100644 index 00000000..8db0bf85 --- /dev/null +++ b/lua/lspconfig/configs/stylua3p_ls.lua @@ -0,0 +1,16 @@ +local util = require('lspconfig.util') + +return { + default_config = { + cmd = { 'stylua-3p-language-server' }, + filetypes = { 'lua' }, + 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 +]], + }, +} -- cgit v1.2.3-70-g09d2