- commit
- 61dcf33
- parent
- 004b433
- author
- Eric Bower
- date
- 2025-10-22 23:19:27 -0400 EDT
chore(nvim): cleanup
1 files changed,
+2,
-22
+2,
-22
1@@ -58,7 +58,6 @@ end)
2 map("n", "<leader>l", function() -- https://github.com/shell-pool/shpool/issues/240#issuecomment-3097566679
3 io.stdout:write("\027[?2048h")
4 end, opts)
5-
6 map("n", "<leader>r", function()
7 local loclist_win = vim.fn.getloclist(0, { winid = 0 }).winid
8 if loclist_win > 0 then
9@@ -70,26 +69,7 @@ end, opts)
10 map("n", "<leader>q", function()
11 require("qfutil").toggle_qf() -- toggle quickfix
12 end, opts)
13-map("n", "<leader>g", function() -- grep entire project
14- vim.ui.input({ prompt = "grep: " }, function(search)
15- if search == nil then
16- return
17- end
18- vim.cmd(string.format("silent grep! %s", search))
19- vim.cmd("copen")
20- end)
21-end, opts)
22-map("n", "<leader>c", function() -- run cmd in scratch buffer
23- vim.ui.input({ prompt = "cmd: " }, function(cmd)
24- if cmd == nil then
25- return
26- end
27- vim.cmd("enew")
28- vim.cmd(string.format("file %s", cmd))
29- vim.bo.buftype = "nofile"
30- vim.api.nvim_buf_set_lines(0, 0, -1, false, vim.fn.systemlist(cmd))
31- end)
32-end, opts)
33+map("n", "<leader>g", "silent grep! ")
34 map("n", "<leader>d", "<cmd>Qf git diff --name-only<cr>")
35 map("n", "<leader>s", ":Qfa fd -t f | fzf -f ") -- fuzzy match files into quickfix
36
37@@ -145,7 +125,7 @@ vim.pack.add({
38 "https://github.com/karb94/neoscroll.nvim",
39 "https://github.com/linrongbin16/gitlinker.nvim",
40 "https://github.com/neurosnap/qfutil.nvim",
41- "https://github.com/nicolasgb/jj.nvim",
42+ "https://github.com/neurosnap/jj.nvim",
43 })
44
45 require("vim._extui").enable({}) -- https://github.com/neovim/neovim/pull/27855