aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/ocamlls.lua4
-rw-r--r--lua/lspconfig/ocamllsp.lua4
-rw-r--r--lua/lspconfig/stylelint_lsp.lua13
3 files changed, 17 insertions, 4 deletions
diff --git a/lua/lspconfig/ocamlls.lua b/lua/lspconfig/ocamlls.lua
index d01f7622..053dfe3b 100644
--- a/lua/lspconfig/ocamlls.lua
+++ b/lua/lspconfig/ocamlls.lua
@@ -8,7 +8,7 @@ configs[server_name] = {
default_config = {
cmd = { bin_name, "--stdio" };
filetypes = { "ocaml", "reason" };
- root_dir = util.root_pattern(".merlin", "package.json");
+ root_dir = util.root_pattern("*.opam", "esy.json", "package.json");
};
docs = {
description = [[
@@ -20,7 +20,7 @@ npm install -g ocaml-langauge-server
```
]];
default_config = {
- root_dir = [[root_pattern(".merlin", "package.json")]];
+ root_dir = [[root_pattern("*.opam", "esy.json", "package.json")]];
};
};
};
diff --git a/lua/lspconfig/ocamllsp.lua b/lua/lspconfig/ocamllsp.lua
index 9efc59b4..155ec1c8 100644
--- a/lua/lspconfig/ocamllsp.lua
+++ b/lua/lspconfig/ocamllsp.lua
@@ -5,7 +5,7 @@ configs.ocamllsp = {
default_config = {
cmd = {"ocamllsp",};
filetypes = {'ocaml', 'reason'};
- root_dir = util.root_pattern(".merlin", "package.json", ".git");
+ root_dir = util.root_pattern("*.opam", "esy.json", "package.json", ".git");
};
docs = {
description = [[
@@ -20,7 +20,7 @@ opam install ocaml-lsp-server
```
]];
default_config = {
- root_dir = [[root_pattern(".merlin", "package.json")]];
+ root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git")]];
};
};
}
diff --git a/lua/lspconfig/stylelint_lsp.lua b/lua/lspconfig/stylelint_lsp.lua
index 972389a8..9028864c 100644
--- a/lua/lspconfig/stylelint_lsp.lua
+++ b/lua/lspconfig/stylelint_lsp.lua
@@ -20,6 +20,7 @@ configs.stylelint_lsp = {
settings = {};
},
docs = {
+ package_json = "https://raw.githubusercontent.com/bmatcuk/coc-stylelintplus/master/package.json";
description = [[
https://github.com/bmatcuk/stylelint-lsp
@@ -28,6 +29,18 @@ https://github.com/bmatcuk/stylelint-lsp
```sh
npm i -g stylelint-lsp
```
+
+Can be configured by passing a `settings.stylelintplus` object to `stylelint_lsp.setup`:
+
+```lua
+require'lspconfig'.stylelint_lsp.setup{
+ settings = {
+ stylelintplus = {
+ -- see available options in stylelint-lsp documentation
+ }
+ }
+}
+```
]];
default_config = {
root_dir = [[ root_pattern('.stylelintrc', 'package.json') ]];