mirror of
https://github.com/ThePrimeagen/harpoon
synced 2024-09-16 13:34:03 +02:00
Formatted failing files
This commit is contained in:
parent
f4aff5bf9b
commit
39d71e5c55
3 changed files with 12 additions and 18 deletions
|
@ -10,10 +10,8 @@ local cache_config = string.format("%s/harpoon.json", data_path)
|
|||
|
||||
local M = {}
|
||||
|
||||
local the_primeagen_harpoon = vim.api.nvim_create_augroup(
|
||||
"THE_PRIMEAGEN_HARPOON",
|
||||
{ clear = true }
|
||||
)
|
||||
local the_primeagen_harpoon =
|
||||
vim.api.nvim_create_augroup("THE_PRIMEAGEN_HARPOON", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufLeave, VimLeave" }, {
|
||||
callback = function()
|
||||
|
|
|
@ -7,10 +7,8 @@ local M = {}
|
|||
local tmux_windows = {}
|
||||
|
||||
if global_config.tmux_autoclose_windows then
|
||||
local harpoon_tmux_group = vim.api.nvim_create_augroup(
|
||||
"HARPOON_TMUX",
|
||||
{ clear = true }
|
||||
)
|
||||
local harpoon_tmux_group =
|
||||
vim.api.nvim_create_augroup("HARPOON_TMUX", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd("VimLeave", {
|
||||
callback = function()
|
||||
|
|
|
@ -38,16 +38,14 @@ function M.get_os_command_output(cmd, cwd)
|
|||
end
|
||||
local command = table.remove(cmd, 1)
|
||||
local stderr = {}
|
||||
local stdout, ret = Job
|
||||
:new({
|
||||
command = command,
|
||||
args = cmd,
|
||||
cwd = cwd,
|
||||
on_stderr = function(_, data)
|
||||
table.insert(stderr, data)
|
||||
end,
|
||||
})
|
||||
:sync()
|
||||
local stdout, ret = Job:new({
|
||||
command = command,
|
||||
args = cmd,
|
||||
cwd = cwd,
|
||||
on_stderr = function(_, data)
|
||||
table.insert(stderr, data)
|
||||
end,
|
||||
}):sync()
|
||||
return stdout, ret, stderr
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue