From 8d074932e4c05cbc9f34ae961719a09f2096bf24 Mon Sep 17 00:00:00 2001 From: tsindt Date: Wed, 11 Mar 2026 15:44:04 +0100 Subject: [PATCH] harpoon --- lazy-lock.json | 8 +++++--- lua/plugins/harpoon.lua | 15 +++++++++++++++ lua/plugins/oneliner.lua | 6 ++++++ lua/plugins/treesitter.lua | 2 +- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 lua/plugins/harpoon.lua create mode 100644 lua/plugins/oneliner.lua diff --git a/lazy-lock.json b/lazy-lock.json index abdb5e9..6ac2537 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,11 +1,13 @@ { + "harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, - "nvim-lspconfig": { "branch": "master", "commit": "d8bf4c47385340ab2029402201d4d7c9f99f437a" }, + "nvim-lspconfig": { "branch": "master", "commit": "0203a9608d63eda57679b01e69f33a7b4c34b0d1" }, "nvim-treesitter": { "branch": "main", "commit": "5cb05e1b0fa3c469958a2b26f36b3fe930af221c" }, - "nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" }, + "nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" }, - "telescope.nvim": { "branch": "master", "commit": "3333a52ff548ba0a68af6d8da1e54f9cd96e9179" } + "telescope.nvim": { "branch": "master", "commit": "3333a52ff548ba0a68af6d8da1e54f9cd96e9179" }, + "vim-fugitive": { "branch": "master", "commit": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0" } } diff --git a/lua/plugins/harpoon.lua b/lua/plugins/harpoon.lua new file mode 100644 index 0000000..773af8e --- /dev/null +++ b/lua/plugins/harpoon.lua @@ -0,0 +1,15 @@ + +return { + "thePrimeagen/harpoon", + branch = "harpoon2", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + local harpoon = require('harpoon') + 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():prev() end) + vim.keymap.set("n", "", function() harpoon:list():next() end) + end +} + + diff --git a/lua/plugins/oneliner.lua b/lua/plugins/oneliner.lua new file mode 100644 index 0000000..f652f86 --- /dev/null +++ b/lua/plugins/oneliner.lua @@ -0,0 +1,6 @@ +return { + { + 'tpope/vim-fugitive', + }, + +} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index c574abd..0aa1bef 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -8,7 +8,7 @@ return { "bash", "bibtex", "c", "css", "fish", "go", "java", "rust", "lua", "vim", "python", "cpp", "markdown", "markdown-inline","html", "yaml", "latex" }, - auto_install = true, + auto_install = false, highlight = { enable = true }, indent = { enable = true }, autotag = { enable = true },