Be explicit about clangd when calling :LspRestart

This commit is contained in:
Kenneth Benzie 2025-06-19 10:25:03 +01:00
parent d0b4e419e6
commit 440fea18ee

View File

@ -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