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.
2 parents cc8f094 + 5f44892 commit 0025c3aCopy full SHA for 0025c3a
lua/freeze/init.lua
@@ -89,7 +89,12 @@ end
89
local function open_by_os(args)
90
local is_win = vim.loop.os_uname().sysname:match("Windows")
91
local is_linux = vim.loop.os_uname().sysname:match("Linux")
92
- local output = vim.fn.expand(args.output)
+ local output
93
+ if type(args.output) == "function" then
94
+ output = vim.fn.expand(args.output())
95
+ else
96
+ output = vim.fn.expand(args.output)
97
+ end
98
local cmd = {}
99
if is_win then
100
table.insert(cmd, "explorer")
0 commit comments