repos / dotfiles

my dotfiles

commit
1a8ace5
parent
33e2d0c
author
Eric Bower
date
2025-09-22 10:41:14 -0400 EDT
refactor(nvim): Qf command
1 files changed,  +5, -5
M dot_config/nvim/init.lua
+5, -5
 1@@ -63,6 +63,10 @@ local function cqf(cmd, jump)
 2 	vim.cmd("copen")
 3 end
 4 
 5+vim.api.nvim_create_user_command("Qf", function(opts)
 6+	cqf(opts.args, false)
 7+end, { nargs = "+", desc = "convert command to quickfix" })
 8+
 9 local opts = { silent = true }
10 local map = vim.keymap.set
11 map("t", "<Esc>", [[<C-\><C-n>]], opts) -- exit terminal mode
12@@ -94,9 +98,7 @@ map("n", "<leader>g", function() -- grep entire project
13 		vim.cmd("copen")
14 	end)
15 end, opts)
16-map("n", "<leader>d", function() -- git diff into quickfix
17-  vim.cmd("G difftool")
18-end)
19+map("n", "<leader>d", ":Qf git diff --name-only")
20 map("n", "<leader>s", function() -- fuzzy match files into quickfix
21 	vim.ui.input({ prompt = "file: " }, function(file)
22 		cqf(string.format("fd -t f | fzf -f %s", file), true)
23@@ -194,7 +196,6 @@ vim.pack.add({
24 	"https://github.com/tpope/vim-fugitive",
25 	"https://github.com/karb94/neoscroll.nvim",
26 	"https://github.com/linrongbin16/gitlinker.nvim",
27-  "https://github.com/kevinhwang91/nvim-bqf",
28 })
29 
30 require("vim._extui").enable({}) -- https://github.com/neovim/neovim/pull/27855
31@@ -203,4 +204,3 @@ setup_lsp()
32 require("treesitter-context").setup({ max_lines = 3, separator = ">", mode = "topline" })
33 require("neoscroll").setup({ duration_multiplier = 0.3 })
34 require("gitlinker").setup()
35-require("bqf").setup()