Skip to content

Commit 4a2ec70

Browse files
Battle420siduck
andauthored
recipes: update lsp config syntax
* recipes: update lsp config syntax * Update recipes.mdx --------- Co-authored-by: Sidhanth Rathod <[email protected]>
1 parent 0eb8102 commit 4a2ec70

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/routes/docs/recipes.mdx

+2-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ local servers = {
3232
}
3333

3434
for name, opts in pairs(servers) do
35-
opts.on_init = configs.on_init
36-
opts.on_attach = configs.on_attach
37-
opts.capabilities = configs.capabilities
38-
39-
require("lspconfig")[name].setup(opts)
35+
vim.lsp.enable(name) -- nvim v0.11.0 or above required
36+
vim.lsp.config(name, opts) -- nvim v0.11.0 or above required
4037
end
4138
```
4239

0 commit comments

Comments
 (0)