diff options
| Commit | b0989e2c7ff50e6f9bd467ad950d657a890a82d7 (patch) | |
|---|---|---|
| Author | 2025-11-07 18:29:19 +0200 | |
| Committer | 2025-11-07 18:29:19 +0200 | |
| Files | 51c11453fe8922961e6a47dcd458a0bc7ec95fc0 /lua | |
| anderson-b0989e2c7ff50e6f9bd467ad950d657a890a82d7.tar anderson-b0989e2c7ff50e6f9bd467ad950d657a890a82d7.tar.gz anderson-b0989e2c7ff50e6f9bd467ad950d657a890a82d7.zip | ||
| Parent | a23fa41ad62c9c85cc7937c96cd05a74d97ee007 (diff) | |
fix(plugins): Make telescope.builtin be called safely
Otherwise, if you dont have telescope plugin installed, you'll get an
error and the rest of the file stops being evaluated. Which in turn
means Lazy won't install telescope.
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | lua/plugins/default.lua | 2 |
diff --git a/lua/plugins/default.lua b/lua/plugins/default.lua index 7a409c8..dc595ca 100644 --- a/lua/plugins/default.lua +++ b/lua/plugins/default.lua @@ -1,4 +1,4 @@ -local builtin = require('telescope.builtin') +local _, builtin = pcall(require, 'telescope.builtin') return { --[=[ Visuals ]=]-- { |
