Skip to content

Commit ed38c1b

Browse files
authored
Update README.md (#79)
`require("lspconfig")` will be deprecated in the next lspconfig version. This is how it should be configured now
1 parent aea5715 commit ed38c1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ The binary is called `rescript-language-server`
6464
Install the [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) package and setup the LSP
6565

6666
```lua
67-
local lspconfig = require('lspconfig')
68-
69-
lspconfig.rescriptls.setup{}
67+
vim.lsp.config("rescriptls", {})
68+
vim.lsp.enable("rescriptls")
7069
```
7170

7271
For more details, see [server configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls)

0 commit comments

Comments
 (0)