From 2e8b9299891bc0eb8a11c2e323aeed7a4fc9dd16 Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Fri, 11 Nov 2022 10:03:59 +0800 Subject: [PATCH] ci: complacence with clangd-14 and more robust code --- test/unit_tests.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit_tests.vim b/test/unit_tests.vim index 3e8817a..8e7f72a 100644 --- a/test/unit_tests.vim +++ b/test/unit_tests.vim @@ -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) -- 2.48.1