From 77e692566415d3977d4162a6675a0164387532d9 Mon Sep 17 00:00:00 2001 From: dlond Date: Fri, 30 May 2025 06:31:03 +1200 Subject: [PATCH] cleanup --- lua/custom/plugins/lsp/clangd.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/custom/plugins/lsp/clangd.lua b/lua/custom/plugins/lsp/clangd.lua index 386e3a4e..5f0d4fbf 100644 --- a/lua/custom/plugins/lsp/clangd.lua +++ b/lua/custom/plugins/lsp/clangd.lua @@ -71,9 +71,9 @@ function M.watch_compile_commands(dir) local watch_path = dir or vim.fn.getcwd() local watch_file = watch_path .. '/compile_commands.json' - -- if not M.auto_watch_enabled or not vim.fn.filereadable(watch_file) then - -- return - -- end + if not M.auto_watch_enabled or not vim.fn.filereadable(watch_file) then + return + end watcher = uv.new_fs_event() watcher:start( @@ -128,7 +128,6 @@ return { ft = M.clang_filetypes, config = function() local dir = find_compile_commands() - vim.notify('[clangd] find_compile_commands() returned: "' .. dir .. '"') M.start_clangd(dir) M.watch_compile_commands(dir)