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
Now you can use `require("lspconfig")`, so add in your `~/.config/nvim/init.lua`:
181
186
182
187
```lua
183
-
return {
184
-
default_config= {
185
-
cmd= { 'sysdig-lsp' },
186
-
root_dir=util.root_pattern('.git'),
187
-
filetypes= {
188
-
'dockerfile',
188
+
locallspconfig=require("lspconfig")
189
+
localconfigs=require("lspconfig.configs")
190
+
191
+
ifnotconfigs.sysdigthen
192
+
configs.sysdig= {
193
+
default_config= {
194
+
cmd= { "sysdig-lsp" },
195
+
root_dir=lspconfig.util.root_pattern(".git"),
196
+
filetypes= { "dockerfile" },
197
+
single_file_support=true,
198
+
init_options= {
199
+
sysdig= {
200
+
api_url="https://us2.app.sysdig.com",
201
+
-- api_token = "my_token", -- if not specified, will be retrieved from the SYSDIG_API_TOKEN env var.
202
+
},
203
+
},
189
204
},
190
-
single_file_support=true,
191
-
init_options= {
192
-
activateSnykCode='true',
205
+
}
206
+
end
207
+
208
+
lspconfig.sysdig.setup({})
209
+
```
210
+
211
+
### Neovim 0.11+ (without plugins)
212
+
213
+
Refer to the [Neovim LSP configuration guide](https://neovim.io/doc/user/lsp.html#lsp-config) and add the following config in `~/.config/nvim/init.lua`:
214
+
215
+
```lua
216
+
vim.lsp.config.sysdig= {
217
+
cmd= {"sysdig-lsp"},
218
+
root_markers= {"Dockerfile"},
219
+
filetypes= { "dockerfile" },
220
+
init_options= {
221
+
sysdig= {
222
+
api_url="https://us2.app.sysdig.com",
223
+
-- api_token = "my_token", -- if not specified, will be retrieved from the SYSDIG_API_TOKEN env var.
0 commit comments