From 440fea18eec1406868f574b1871b34749606cba3 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 19 Jun 2025 10:25:03 +0100 Subject: [PATCH] Be explicit about `clangd` when calling :LspRestart --- plugin/build.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/build.lua b/plugin/build.lua index e0a65dd..d3ba88d 100644 --- a/plugin/build.lua +++ b/plugin/build.lua @@ -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