From 333bae3d4c4f898699e96f488e43057f55bc5ea2 Mon Sep 17 00:00:00 2001 From: Gergő Sulymosi Date: Thu, 20 Feb 2025 06:02:32 -0600 Subject: feat: turbo-language-server (#3620) The language server supports writing [Turbo](https://turbo.hotwired.dev). There is a corresponding [VS Code plugin][1] with 700+ downloads. [1]: https://marketplace.visualstudio.com/items?itemName=marcoroth.turbo-lsp&ssr=false#overview --- lua/lspconfig/configs/turbo_ls.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/lspconfig/configs/turbo_ls.lua diff --git a/lua/lspconfig/configs/turbo_ls.lua b/lua/lspconfig/configs/turbo_ls.lua new file mode 100644 index 00000000..031f3c7b --- /dev/null +++ b/lua/lspconfig/configs/turbo_ls.lua @@ -0,0 +1,24 @@ +return { + default_config = { + cmd = { 'turbo-language-server', '--stdio' }, + filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' }, + root_dir = vim.fs.root(0, { 'Gemfile', '.git' }), + }, + docs = { + description = [[ +https://www.npmjs.com/package/turbo-language-server + +`turbo-language-server` can be installed via `npm`: + +```sh +npm install -g turbo-language-server +``` + +or via `yarn`: + +```sh +yarn global add turbo-language-server +``` +]], + }, +} -- cgit v1.2.3-70-g09d2