aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorGergő Sulymosi <gergo.sulymosi@gmail.com>2025-02-20 06:02:32 -0600
committerGitHub <noreply@github.com>2025-02-20 20:02:32 +0800
commit333bae3d4c4f898699e96f488e43057f55bc5ea2 (patch)
tree1019dc8acd71fe533693ad3cc50235b2ef24a5f4 /lua
parentfix(lua_ls): return longest root path (diff)
downloadnvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.tar
nvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.tar.gz
nvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.tar.bz2
nvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.tar.lz
nvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.tar.xz
nvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.tar.zst
nvim-lspconfig-333bae3d4c4f898699e96f488e43057f55bc5ea2.zip
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
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/turbo_ls.lua24
1 files changed, 24 insertions, 0 deletions
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
+```
+]],
+ },
+}