diff options
| author | bipedal-eel <bendixalt@gmail.com> | 2026-02-04 15:44:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-04 09:44:25 -0500 |
| commit | 44fe50592bb4ad707893f88a821d135a410eca24 (patch) | |
| tree | 83dc6a66624bead3550533f36105f6541463a4b1 /lsp/angularls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.tar nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.tar.gz nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.tar.bz2 nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.tar.lz nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.tar.xz nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.tar.zst nvim-lspconfig-44fe50592bb4ad707893f88a821d135a410eca24.zip | |
fix(ngserver): pull version from devDependencies too #4305
Diffstat (limited to 'lsp/angularls.lua')
| -rw-r--r-- | lsp/angularls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/angularls.lua b/lsp/angularls.lua index af82b87a..adc5be9e 100644 --- a/lsp/angularls.lua +++ b/lsp/angularls.lua @@ -85,7 +85,7 @@ local function get_angular_core_version(root_dir) local json = vim.json.decode(content) or {} - local version = (json.dependencies or {})['@angular/core'] or '' + local version = (json.dependencies or {})['@angular/core'] or (json.devDependencies or {})['@angular/core'] or '' return version:match('%d+%.%d+%.%d+') or '' end |
