mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Formatted failing files
This commit is contained in:
parent
f4aff5bf9b
commit
39d71e5c55
@ -10,10 +10,8 @@ local cache_config = string.format("%s/harpoon.json", data_path)
|
|||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local the_primeagen_harpoon = vim.api.nvim_create_augroup(
|
local the_primeagen_harpoon =
|
||||||
"THE_PRIMEAGEN_HARPOON",
|
vim.api.nvim_create_augroup("THE_PRIMEAGEN_HARPOON", { clear = true })
|
||||||
{ clear = true }
|
|
||||||
)
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufLeave, VimLeave" }, {
|
vim.api.nvim_create_autocmd({ "BufLeave, VimLeave" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
@ -7,10 +7,8 @@ local M = {}
|
|||||||
local tmux_windows = {}
|
local tmux_windows = {}
|
||||||
|
|
||||||
if global_config.tmux_autoclose_windows then
|
if global_config.tmux_autoclose_windows then
|
||||||
local harpoon_tmux_group = vim.api.nvim_create_augroup(
|
local harpoon_tmux_group =
|
||||||
"HARPOON_TMUX",
|
vim.api.nvim_create_augroup("HARPOON_TMUX", { clear = true })
|
||||||
{ clear = true }
|
|
||||||
)
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("VimLeave", {
|
vim.api.nvim_create_autocmd("VimLeave", {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
@ -38,16 +38,14 @@ function M.get_os_command_output(cmd, cwd)
|
|||||||
end
|
end
|
||||||
local command = table.remove(cmd, 1)
|
local command = table.remove(cmd, 1)
|
||||||
local stderr = {}
|
local stderr = {}
|
||||||
local stdout, ret = Job
|
local stdout, ret = Job:new({
|
||||||
:new({
|
command = command,
|
||||||
command = command,
|
args = cmd,
|
||||||
args = cmd,
|
cwd = cwd,
|
||||||
cwd = cwd,
|
on_stderr = function(_, data)
|
||||||
on_stderr = function(_, data)
|
table.insert(stderr, data)
|
||||||
table.insert(stderr, data)
|
end,
|
||||||
end,
|
}):sync()
|
||||||
})
|
|
||||||
:sync()
|
|
||||||
return stdout, ret, stderr
|
return stdout, ret, stderr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user