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
**By default, nelua-lsp doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary.
Copy file name to clipboardExpand all lines: doc/configs.txt
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -178,12 +178,12 @@ Note, that if you override the default `cmd`, you must also update `on_new_confi
178
178
local project_library_path = "/path/to/project/lib"
179
179
local cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path}
180
180
181
-
require'lspconfig'.angularls.setup{
181
+
vim.lsp.config('angularls', {
182
182
cmd = cmd,
183
183
on_new_config = function(new_config,new_root_dir)
184
184
new_config.cmd = cmd
185
185
end,
186
-
}
186
+
})
187
187
188
188
Snippet to enable the language server: >lua
189
189
vim.lsp.enable('angularls')
@@ -590,7 +590,7 @@ An Azure Pipelines language server
590
590
591
591
By default `azure-pipelines-ls` will only work in files named `azure-pipelines.yml`, this can be changed by providing additional settings like so >lua
592
592
vim.lsp.config('azure_pipelines_ls', {
593
-
... -- other configuration for setup {}
593
+
... -- other configuration
594
594
settings = {
595
595
yaml = {
596
596
schemas = {
@@ -4984,7 +4984,7 @@ in lua >lua
4984
4984
4985
4985
**By default, nelua-lsp doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary.
0 commit comments