This commit is contained in:
dlond 2025-05-30 06:56:27 +12:00
parent 1f53e61d68
commit 5b2d259d49
1 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,9 @@ function M.pick_commands_dir()
local entry = require('telescope.actions.state').get_selected_entry() local entry = require('telescope.actions.state').get_selected_entry()
require('telescope.actions').close(prompt_bufnr) require('telescope.actions').close(prompt_bufnr)
vim.defer_fn(function() vim.defer_fn(function()
M.start_clangd(entry[1]) if entry[1] then
M.start_clangd(entry[1])
end
end, 100) end, 100)
end) end)
return true return true