diff options
author | ChristianChiarulli <[email protected]> | 2021-11-04 22:50:19 -0400 |
---|---|---|
committer | ChristianChiarulli <[email protected]> | 2021-11-04 22:50:19 -0400 |
commit | 6b3e0574a3d2577f8c0558144202ba12f3978cae (patch) | |
tree | de4435e98d70545fa6f5a11520645cc143d3bd19 /lua/lvim/core/telescope.lua | |
parent | f3d9ef138df7f531434ce3ff37fcd379517d8640 (diff) |
fix: pcall telescope actions
Diffstat (limited to 'lua/lvim/core/telescope.lua')
-rw-r--r-- | lua/lvim/core/telescope.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/lvim/core/telescope.lua b/lua/lvim/core/telescope.lua index 7a5315dd..147c056c 100644 --- a/lua/lvim/core/telescope.lua +++ b/lua/lvim/core/telescope.lua @@ -2,13 +2,17 @@ local M = {} function M.config() -- Define this minimal config so that it's available if telescope is not yet available. + lvim.builtin.telescope = { ---@usage disable telescope completely [not recommeded] active = true, on_config_done = nil, } - local actions = require "telescope.actions" + local ok, actions = pcall(require, "telescope.actions") + if not ok then + return + end lvim.builtin.telescope = vim.tbl_extend("force", lvim.builtin.telescope, { defaults = { prompt_prefix = "ï‘« ", |