From c3b32d95c90e66269f5e1085b81ef0f2b69a981c Mon Sep 17 00:00:00 2001 From: dlond Date: Fri, 30 May 2025 06:58:39 +1200 Subject: [PATCH] cleanup --- 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 67d26c0b..05b39c6b 100644 --- a/lua/custom/plugins/lsp/clangd.lua +++ b/lua/custom/plugins/lsp/clangd.lua @@ -114,7 +114,7 @@ function M.pick_commands_dir() local entry = require('telescope.actions.state').get_selected_entry() require('telescope.actions').close(prompt_bufnr) vim.defer_fn(function() - if entry[1] then + if entry then M.start_clangd(entry[1]) end end, 100)