From a156e541cf7e6df2e88eb154f438a9c67b503ada Mon Sep 17 00:00:00 2001 From: dlond Date: Fri, 30 May 2025 06:15:53 +1200 Subject: [PATCH] cleanup --- lua/custom/plugins/lsp/clangd.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/custom/plugins/lsp/clangd.lua b/lua/custom/plugins/lsp/clangd.lua index 4fd92dc8..c2cd5883 100644 --- a/lua/custom/plugins/lsp/clangd.lua +++ b/lua/custom/plugins/lsp/clangd.lua @@ -129,9 +129,7 @@ return { config = function() local dir = find_compile_commands() M.start_clangd(dir) - if dir ~= '' then - M.watch_compile_commands(dir) - end + M.watch_compile_commands(dir) vim.keymap.set('n', 'cc', M.pick_commands_dir, { desc = 'Pick location of compile_commands.json for clangd' }) end,