]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
ci: complacence with clangd-14 and more robust code
authorshane.xb.qian <shane.qian@foxmail.com>
Fri, 11 Nov 2022 02:03:59 +0000 (10:03 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Fri, 11 Nov 2022 02:03:59 +0000 (10:03 +0800)
test/unit_tests.vim

index 3e8817a63508e22a4153f46b7e3717d31d75d00e..8e7f72a94973eb37d552b86b813c447b5b8b8a11 100644 (file)
@@ -21,7 +21,7 @@ endif
 source ../plugin/lsp.vim
 var lspServers = [{
       filetype: ['c', 'cpp'],
-      path: '/usr/bin/clangd-12',
+      path: (exepath('clangd-14') ?? exepath('clangd')),
       args: ['--background-index', '--clang-tidy']
   }]
 call LspAddServer(lspServers)