diff options
| author | RiN <hi@rin.rocks> | 2022-03-07 04:36:36 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 13:36:36 -0800 |
| commit | e67f23e93214340fabf8a48fcdf46ddfec59093b (patch) | |
| tree | 8990975d6aae4aa81e19b8ff2bdefdb3557c8439 | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-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.lua | 23 |
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>'} +``` +]], + }, +} |
