Use LspStop and LspStart instead of LspRestart

This commit is contained in:
Kenneth Benzie 2024-07-19 20:58:27 +01:00
parent 8b4258408e
commit d1f83a05b9

View File

@ -30,9 +30,9 @@ function build.set_dir(dirname)
'compdb -p ' .. build.dir .. ' list > ' .. compile_commands, {
-- Restart clangd language server
-- TODO: Configure cmake language server?
on_exit = function()
vim.cmd.LspRestart('clangd')
vim.cmd('LspStop')
vim.cmd('LspStart')
echo('Build directory selected: ' .. dirname, 'DiagnosticInfo')
end,