Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lua/plugins/bqf/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ return {
dependencies = {
{
"junegunn/fzf",
build = function()
vim.fn["fzf#install"]()
build = function(plugin)
local result = vim.system({ "./install", "--bin" }, { cwd = plugin.dir }):wait()
if result.code ~= 0 then
error(result.stdout .. result.stderr)
end
end,
},
},
Expand Down
3 changes: 2 additions & 1 deletion lua/plugins/diffview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ local M = {
vim.opt.fillchars:append({ diff = "╱" })
local actions = require("diffview.actions")
local diffview = require("diffview")
local git_helpers = require("git-helpers")

-- Diffview changes. Can be used to stage/unstage files.
vim.keymap.set("n", "<leader>gs", function()
Expand All @@ -30,6 +29,7 @@ local M = {

-- View entire changes versus a specific branch.
vim.keymap.set("n", "<leader>gdd", function()
local git_helpers = require("git-helpers")
git_helpers.branch_input(function(branch)
vim.cmd(string.format("DiffviewOpen origin/%s...HEAD -- %s", branch, git_helpers.ignore_paths))
end)
Expand Down Expand Up @@ -394,6 +394,7 @@ local M = {
"n",
"<leader>go",
function()
local git_helpers = require("git-helpers")
local hash = git_helpers.get_hash()
if hash == nil then
return
Expand Down
3 changes: 1 addition & 2 deletions lua/plugins/snacks/changed-files.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local git_helpers = require("../../git-helpers")

local ChangedFiles = {}
ChangedFiles.__index = ChangedFiles

Expand All @@ -24,6 +22,7 @@ function ChangedFiles:formatted()
end

function ChangedFiles:get_all()
local git_helpers = require("../../git-helpers")
self.all_files = git_helpers.changed_files(self.branch)
return self.all_files
end
Expand Down