You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
local M = { |
|
|
"ThePrimeagen/harpoon", |
|
|
event = "VeryLazy", |
|
|
dependencies = { |
|
|
{ "nvim-lua/plenary.nvim" }, |
|
|
}, |
|
|
} |
|
|
|
|
|
function M.config() |
|
|
local keymap = vim.keymap.set |
|
|
local opts = { noremap = true, silent = true } |
|
|
|
|
|
keymap("n", "<s-m>", "<cmd>lua require('user.extras.harpoon').mark_file()<cr>", opts) |
|
|
keymap("n", "<TAB>", "<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>", opts) |
|
|
vim.api.nvim_create_autocmd({ "filetype" }, { |
|
|
pattern = "harpoon", |
|
|
callback = function() |
|
|
vim.cmd [[highlight link HarpoonBorder TelescopeBorder]] |
|
|
-- vim.cmd [[setlocal nonumber]] |
|
|
-- vim.cmd [[highlight HarpoonWindow guibg=#313132]] |
|
|
end, |
|
|
}) |
|
|
end |
|
|
|
|
|
function M.mark_file() |
|
|
require("harpoon.mark").add_file() |
|
|
vim.notify " marked file" |
|
|
end |
|
|
|
|
|
return M
|
|
|
|