aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiN <hi@rin.rocks>2022-03-07 04:36:36 +0700
committerGitHub <noreply@github.com>2022-03-06 13:36:36 -0800
commite67f23e93214340fabf8a48fcdf46ddfec59093b (patch)
tree8990975d6aae4aa81e19b8ff2bdefdb3557c8439
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.tar
nvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.tar.gz
nvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.tar.bz2
nvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.tar.lz
nvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.tar.xz
nvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.tar.zst
nvim-lspconfig-e67f23e93214340fabf8a48fcdf46ddfec59093b.zip
feat: add reason-language-server (#1721)
-rw-r--r--lua/lspconfig/server_configurations/reason_ls.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/reason_ls.lua b/lua/lspconfig/server_configurations/reason_ls.lua
new file mode 100644
index 00000000..45e7d0b5
--- /dev/null
+++ b/lua/lspconfig/server_configurations/reason_ls.lua
@@ -0,0 +1,23 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'reason-language-server' },
+ filetypes = { 'reason' },
+ root_dir = util.root_pattern('bsconfig.json', '.git'),
+ },
+ docs = {
+ description = [[
+Reason language server
+
+**By default, reason_ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path.
+You have to install the language server manually.
+
+You can install reason language server from [reason-language-server](https://github.com/jaredly/reason-language-server) repository.
+
+```lua
+cmd = {'<path_to_reason_language_server>'}
+```
+]],
+ },
+}