From fb0bf2ebb758df23643011cc0cd2c66aacb543fe Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Fri, 19 Jun 2026 12:10:54 +0200 Subject: [PATCH] add goyo config and harpoon plugin --- config/nvim/lua/eliaskohout/keymaps.lua | 8 +++---- config/nvim/lua/eliaskohout/plugins.lua | 1 + config/nvim/lua/eliaskohout/plugins/goyo.lua | 12 ++++++++++- .../nvim/lua/eliaskohout/plugins/harpoon.lua | 21 +++++++++++++++++++ 4 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 config/nvim/lua/eliaskohout/plugins/harpoon.lua diff --git a/config/nvim/lua/eliaskohout/keymaps.lua b/config/nvim/lua/eliaskohout/keymaps.lua index 482f453..724f359 100644 --- a/config/nvim/lua/eliaskohout/keymaps.lua +++ b/config/nvim/lua/eliaskohout/keymaps.lua @@ -7,10 +7,10 @@ vim.keymap.set('n', '', 'nohlsearch') vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) -- Keybinds to make split navigation easier. -vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +--vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) +--vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) +--vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) +--vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) --vim.keymap.set('n', '', 'H', { desc = 'Move window to the left' }) --vim.keymap.set('n', '', 'L', { desc = 'Move window to the right' }) diff --git a/config/nvim/lua/eliaskohout/plugins.lua b/config/nvim/lua/eliaskohout/plugins.lua index ca8653b..d63322a 100644 --- a/config/nvim/lua/eliaskohout/plugins.lua +++ b/config/nvim/lua/eliaskohout/plugins.lua @@ -33,6 +33,7 @@ require('lazy').setup({ require 'eliaskohout.plugins.lazydev', -- lua nvim setup require 'eliaskohout.plugins.fugitive', -- git support require 'eliaskohout.plugins.goyo', -- distraction free writing + require 'eliaskohout.plugins.harpoon', -- quick switch lists require 'eliaskohout.plugins.ax', diff --git a/config/nvim/lua/eliaskohout/plugins/goyo.lua b/config/nvim/lua/eliaskohout/plugins/goyo.lua index 5b3ddf6..755c530 100644 --- a/config/nvim/lua/eliaskohout/plugins/goyo.lua +++ b/config/nvim/lua/eliaskohout/plugins/goyo.lua @@ -1 +1,11 @@ -return { 'junegunn/goyo.vim' } +return { + 'junegunn/goyo.vim', + config = function() + vim.api.nvim_create_autocmd('User', { + pattern = 'GoyoEnter', + callback = function() + vim.cmd.colorscheme 'melange' + end, + }) + end, +} diff --git a/config/nvim/lua/eliaskohout/plugins/harpoon.lua b/config/nvim/lua/eliaskohout/plugins/harpoon.lua new file mode 100644 index 0000000..5b16ff3 --- /dev/null +++ b/config/nvim/lua/eliaskohout/plugins/harpoon.lua @@ -0,0 +1,21 @@ +return { + "ThePrimeagen/harpoon", + branch = "harpoon2", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + local harpoon = require("harpoon") + + harpoon:setup() + + 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():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) + + --vim.keymap.set("n", "", function() harpoon:list():prev() end) + --vim.keymap.set("n", "", function() harpoon:list():next() end) + end, +}