We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02c511 commit 3139779Copy full SHA for 3139779
lua/utils/shell.lua
@@ -6,7 +6,7 @@ local job = require('plenary.job')
6
7
local os = require('os')
8
local noti = require('utils.notification')
9
-local pickme = require('pickme')
+local utils = require('utils')
10
11
---@class Utils.Shell
12
local M = {}
@@ -61,7 +61,11 @@ M.open_session_or_dir = function(dir)
61
end
62
63
vim.cmd('cd ' .. dir)
64
- pickme.pick('files', { cwd = dir })
+ if utils.is_available('pickme') then
65
+ require('pickme').pick('files', { cwd = dir })
66
+ else
67
+ vim.cmd('edit ' .. dir)
68
+ end
69
70
71
return M
0 commit comments