Skip to content

Commit 4622a38

Browse files
committed
move to job.lua
1 parent 384b7e7 commit 4622a38

6 files changed

Lines changed: 510 additions & 429 deletions

File tree

lua/fzf-lua/actions.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
local uv = vim.uv or vim.loop
44
local utils = require "fzf-lua.utils"
55
local path = require "fzf-lua.path"
6-
local libuv = require "fzf-lua.libuv"
76

87
---@class fzf-lua.actions
98
---@field expect fun(actions: table, opts: fzf-lua.config.Resolved|{}):string[]?, string[]?
@@ -624,7 +623,7 @@ M.goto_jump = function(selected, opts)
624623
end
625624
else
626625
local _, lnum, col, filepath = selected[1]:match("(%d+)%s+(%d+)%s+(%d+)%s+(.*)")
627-
local ok, res = pcall(libuv.expand, filepath)
626+
local ok, res = pcall(require("fzf-lua.libuv").expand, filepath)
628627
if not ok then
629628
filepath = ""
630629
else
@@ -1337,7 +1336,7 @@ M.serverlist_kill = function(sel)
13371336
end
13381337

13391338
M.serverlist_spawn = function()
1340-
libuv.uv_spawn(
1339+
require("fzf-lua.job").spawn(
13411340
vim.fn.exepath("nvim"), { args = { "--headless" }, env = { NVIM = "" }, detached = true })
13421341
end
13431342

0 commit comments

Comments
 (0)