You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/ide_support.md
+7-24Lines changed: 7 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,35 +62,18 @@ vim.filetype.add({
62
62
})
63
63
```
64
64
65
-
2.In your `neovim/nvim-lspconfig` servers configuration:
65
+
2.Define `lets_ls` lsp config
66
66
67
-
In order for `nvim-lspconfig` to recognize `lets lsp` we must define config for `lets_ls` (lets_ls is just a conventional name because we are not officially added to `neovim/nvim-lspconfig`)
67
+
Requires `neovim >= 0.11.2`
68
68
69
69
```lua
70
-
require("lspconfig.configs").lets_ls= {
71
-
default_config= {
72
-
cmd= {
73
-
"lets self lsp",
74
-
},
75
-
filetypes= { "yaml.lets" },
76
-
root_dir=util.root_pattern("lets.yaml"),
77
-
settings= {},
78
-
},
70
+
vim.lsp.config.lets_ls= {
71
+
cmd= { "lets", "self", "lsp" },
72
+
filetypes= { "yaml.lets" },
73
+
root_markers= { "lets.yaml" },
79
74
}
80
-
```
81
-
82
-
3. And then enable lets_ls in then servers section:
83
75
84
-
```lua
85
-
return {
86
-
"neovim/nvim-lspconfig",
87
-
opts= {
88
-
servers= {
89
-
lets_ls= {},
90
-
pyright= {}, -- pyright here just as hint to where we should add lets_ls
0 commit comments