feat(nvim): add copy_ref plugin for AI chat references

Adds a scratch buffer-based utility to copy file paths and line
ranges for pasting into AI chat conversations. Supports normal mode
(copy path), visual mode (copy path:start:end), and a scratch buffer
for collecting multiple references.
This commit is contained in:
2026-07-21 10:51:57 -04:00
parent 0a729ea821
commit 00c8a641a6
3 changed files with 262 additions and 1 deletions
-1
View File
@@ -42,7 +42,6 @@ vim.keymap.set("n", "<leader>bn", "<cmd>enew<cr>", { desc = "New File" })
-- vim.keymap.set("n", "<leader>bd", "<cmd>bdelete<cr>", { desc = "Unload Buffer" })
vim.keymap.set("n", "<leader>`", "<cmd>e #<cr>", { desc = "Switch to Other Buffer" })
vim.keymap.set("n", "<leader>bc", "<cmd>tabclose<cr>", { desc = "Close Tab" })
-- Clear search with <esc>
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<cr>', { desc = "clear hlsearch" })