summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/stimulus_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/stimulus_ls.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/stimulus_ls.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/stimulus_ls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/stimulus_ls.lua
new file mode 100644
index 0000000..7d11b4c
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/stimulus_ls.lua
@@ -0,0 +1,26 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'stimulus-language-server', '--stdio' },
+ filetypes = { 'html', 'ruby', 'eruby', 'blade', 'php' },
+ root_dir = util.root_pattern('Gemfile', '.git'),
+ },
+ docs = {
+ description = [[
+https://www.npmjs.com/package/stimulus-language-server
+
+`stimulus-lsp` can be installed via `npm`:
+
+```sh
+npm install -g stimulus-language-server
+```
+
+or via `yarn`:
+
+```sh
+yarn global add stimulus-language-server
+```
+]],
+ },
+}