repos / dotfiles

my dotfiles

commit
33e2d0c
parent
42c97ec
author
Eric Bower
date
2025-09-22 09:53:21 -0400 EDT
feat(nvim): try nvim-bqf
1 files changed,  +6, -4
M dot_config/nvim/init.lua
+6, -4
 1@@ -47,7 +47,7 @@ local function cqf(cmd, jump)
 2 
 3 	local files = vim.fn.systemlist(cmd)
 4 	if #files == 0 then
 5-		vim.notify("no files found")
 6+		vim.notify("no files found: " .. cmd)
 7 		return
 8 	end
 9 	if jump and #files == 1 then
10@@ -94,14 +94,14 @@ map("n", "<leader>g", function() -- grep entire project
11 		vim.cmd("copen")
12 	end)
13 end, opts)
14+map("n", "<leader>d", function() -- git diff into quickfix
15+  vim.cmd("G difftool")
16+end)
17 map("n", "<leader>s", function() -- fuzzy match files into quickfix
18 	vim.ui.input({ prompt = "file: " }, function(file)
19 		cqf(string.format("fd -t f | fzf -f %s", file), true)
20 	end)
21 end)
22-map("n", "<leader>d", function() -- git diff into quickfix
23-	cqf("git diff --name-only")
24-end)
25 map("n", "<leader>l", function() -- https://github.com/shell-pool/shpool/issues/240#issuecomment-3097566679
26 	io.stdout:write("\027[?2048h")
27 end, opts)
28@@ -194,6 +194,7 @@ vim.pack.add({
29 	"https://github.com/tpope/vim-fugitive",
30 	"https://github.com/karb94/neoscroll.nvim",
31 	"https://github.com/linrongbin16/gitlinker.nvim",
32+  "https://github.com/kevinhwang91/nvim-bqf",
33 })
34 
35 require("vim._extui").enable({}) -- https://github.com/neovim/neovim/pull/27855
36@@ -202,3 +203,4 @@ setup_lsp()
37 require("treesitter-context").setup({ max_lines = 3, separator = ">", mode = "topline" })
38 require("neoscroll").setup({ duration_multiplier = 0.3 })
39 require("gitlinker").setup()
40+require("bqf").setup()