This commit is contained in:
dlond 2025-05-30 06:15:53 +12:00
parent bb455470ef
commit a156e541cf
1 changed files with 1 additions and 3 deletions

View File

@ -129,9 +129,7 @@ return {
config = function() config = function()
local dir = find_compile_commands() local dir = find_compile_commands()
M.start_clangd(dir) M.start_clangd(dir)
if dir ~= '' then
M.watch_compile_commands(dir) M.watch_compile_commands(dir)
end
vim.keymap.set('n', '<leader>cc', M.pick_commands_dir, { desc = 'Pick location of compile_commands.json for clangd' }) vim.keymap.set('n', '<leader>cc', M.pick_commands_dir, { desc = 'Pick location of compile_commands.json for clangd' })
end, end,