Be explicit about clangd
when calling :LspRestart
This commit is contained in:
parent
d0b4e419e6
commit
440fea18ee
@ -35,7 +35,7 @@ function build.set_dir(dirname)
|
||||
-- This is a callback so doesn't run on the main thread which causes
|
||||
-- issues for running commands, so schedule that on the main thread.
|
||||
vim.schedule(function()
|
||||
vim.cmd('LspRestart')
|
||||
vim.cmd('LspRestart clangd')
|
||||
echo('Build directory selected: ' .. dirname, 'DiagnosticInfo')
|
||||
end)
|
||||
end,
|
||||
@ -67,7 +67,7 @@ function build.set_dir(dirname)
|
||||
-- This is a callback so doesn't run on the main thread which causes
|
||||
-- issues for running commands, so schedule that on the main thread.
|
||||
vim.schedule(function()
|
||||
vim.cmd('LspRestart')
|
||||
vim.cmd('LspRestart clangd')
|
||||
echo('Build directory selected: ' .. dirname, 'DiagnosticInfo')
|
||||
end)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user