From d2c596cbabeb51bccd37ad742fee6025d80f26a4 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 18 Dec 2024 22:16:11 -0500 Subject: [PATCH] feat: add smart-open functionality to enhance file navigation --- lua/data/func.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/data/func.lua b/lua/data/func.lua index c3762eb..943f2a2 100644 --- a/lua/data/func.lua +++ b/lua/data/func.lua @@ -1745,6 +1745,16 @@ function M.pick(cmd, provider, options) cmd = 'find_files' end + -- Smart-open + if cmd == 'smart_open' then + local telescope = require('telescope') + if pcall(telescope.extensions.smart_open.smart_open) then + cmd = 'smart_open' + telescope.extensions.smart_open.smart_open() + return true + end + end + -- Grepping if cmd == 'grep' then if provider == 'telescope' then