From b317778ed1ba39da157f05e2ff7d5a366a99ade9 Mon Sep 17 00:00:00 2001 From: dlond Date: Fri, 30 May 2025 20:26:30 +1200 Subject: [PATCH] lazy clangd --- lua/custom/plugins/lsp/clangd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/custom/plugins/lsp/clangd.lua b/lua/custom/plugins/lsp/clangd.lua index 6643f492..8daa0aa7 100644 --- a/lua/custom/plugins/lsp/clangd.lua +++ b/lua/custom/plugins/lsp/clangd.lua @@ -3,7 +3,7 @@ M.clang_filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' } local lspconfig = require 'lspconfig' -local function find_compile_commands() +function M.find_compile_commands() local results = vim.fn.systemlist { 'fd', '-u', '-t', 'f', 'compile_commands.json' } if vim.tbl_isempty(results) then return nil