From 5b2d259d49de5e030c29bcfdef7cfb936b3826db Mon Sep 17 00:00:00 2001 From: dlond Date: Fri, 30 May 2025 06:56:27 +1200 Subject: [PATCH] cleanup --- lua/custom/plugins/lsp/clangd.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/lsp/clangd.lua b/lua/custom/plugins/lsp/clangd.lua index b4bd9db3..67d26c0b 100644 --- a/lua/custom/plugins/lsp/clangd.lua +++ b/lua/custom/plugins/lsp/clangd.lua @@ -114,7 +114,9 @@ function M.pick_commands_dir() local entry = require('telescope.actions.state').get_selected_entry() require('telescope.actions').close(prompt_bufnr) vim.defer_fn(function() - M.start_clangd(entry[1]) + if entry[1] then + M.start_clangd(entry[1]) + end end, 100) end) return true