From ef193e8f86a7dc646c579fa88c33c4a8031a57f0 Mon Sep 17 00:00:00 2001 From: itsscb Date: Thu, 3 Jul 2025 11:48:30 +0000 Subject: [PATCH] feat: add harpoon and typst.nvim --- init.lua | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/init.lua b/init.lua index 66099d6..83421aa 100644 --- a/init.lua +++ b/init.lua @@ -253,6 +253,14 @@ require('lazy').setup({ { 'tjdevries/present.nvim', }, + { + 'ThePrimeagen/harpoon', + branch = 'harpoon2', + dependencies = { 'nvim-lua/plenary.nvim' }, + }, + { + 'SeniorMars/typst.nvim', + }, -- { -- -- 'github/copilot.vim', @@ -1194,5 +1202,42 @@ require('lazy').setup({ }, }) +local harpoon = require 'harpoon' + +-- REQUIRED +harpoon:setup() +-- REQUIRED + +vim.keymap.set('n', 'a', function() + harpoon:list():add() +end) +vim.keymap.set('n', '', function() + harpoon.ui:toggle_quick_menu(harpoon:list()) +end) + +vim.keymap.set('n', '', function() + harpoon:list():clear() +end) + +vim.keymap.set('n', '', function() + harpoon:list():prev() +end) +vim.keymap.set('n', '', function() + harpoon:list():next() +end) + +-- vim.keymap.set('n', '', function() +-- harpoon:list():select(1) +-- end) +-- vim.keymap.set('n', '', function() +-- harpoon:list():select(2) +-- end) +-- vim.keymap.set('n', '', function() +-- harpoon:list():select(3) +-- end) +-- vim.keymap.set('n', '', function() +-- harpoon:list():select(4) +-- end) + -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et