Use LspStop and LspStart instead of LspRestart
This commit is contained in:
parent
8b4258408e
commit
d1f83a05b9
@ -30,9 +30,9 @@ function build.set_dir(dirname)
|
|||||||
'compdb -p ' .. build.dir .. ' list > ' .. compile_commands, {
|
'compdb -p ' .. build.dir .. ' list > ' .. compile_commands, {
|
||||||
|
|
||||||
-- Restart clangd language server
|
-- Restart clangd language server
|
||||||
-- TODO: Configure cmake language server?
|
|
||||||
on_exit = function()
|
on_exit = function()
|
||||||
vim.cmd.LspRestart('clangd')
|
vim.cmd('LspStop')
|
||||||
|
vim.cmd('LspStart')
|
||||||
echo('Build directory selected: ' .. dirname, 'DiagnosticInfo')
|
echo('Build directory selected: ' .. dirname, 'DiagnosticInfo')
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user