aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2022-07-12 03:37:01 +0200
committerGitHub <noreply@github.com>2022-07-11 19:37:01 -0600
commit034d28c705ccb93dea27613cbf91ba3f9c1caaa7 (patch)
treed02221008c7502397e19460782f3ba225511cc63 /src
parent195d8496a03bf5a14f5d114d57d841b037d543c4 (diff)
downloadrneovim-034d28c705ccb93dea27613cbf91ba3f9c1caaa7.tar.gz
rneovim-034d28c705ccb93dea27613cbf91ba3f9c1caaa7.tar.bz2
rneovim-034d28c705ccb93dea27613cbf91ba3f9c1caaa7.zip
fix(lsp): don't attach a client in lsp.start() if there is none (#19328)
vim.lsp.start_client() may fail (for example if the `cmd` is not executable). It produces a nice error notification in this case. Passing the `nil` value returned from an erroneous `vim.lsp.start_client()` call into `vim.lsp.buf_attach_client()` causes a meaty param validate exception message. Avoid this.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions