From e0dbfe783e62634c57e06f629776a842024c6c00 Mon Sep 17 00:00:00 2001 From: Fabrizzio Delcompare <35388973+fabrv@users.noreply.github.com> Date: Tue, 16 Dec 2025 20:43:57 -0600 Subject: [PATCH] Update README.md `require("lspconfig")` will be deprecated in the next lspconfig version. This is how it should be configured now --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e26e3a0..fbc5882 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,8 @@ The binary is called `rescript-language-server` Install the [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) package and setup the LSP ```lua -local lspconfig = require('lspconfig') - -lspconfig.rescriptls.setup{} +vim.lsp.config("rescriptls", {}) +vim.lsp.enable("rescriptls") ``` For more details, see [server configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls)