add goyo config and harpoon plugin
This commit is contained in:
@@ -7,10 +7,10 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
|||||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||||
|
|
||||||
-- Keybinds to make split navigation easier.
|
-- Keybinds to make split navigation easier.
|
||||||
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
|
--vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
|
||||||
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
|
--vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
|
||||||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
--vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
--vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||||
|
|
||||||
--vim.keymap.set('n', '<C-H>', '<C-w>H', { desc = 'Move window to the left' })
|
--vim.keymap.set('n', '<C-H>', '<C-w>H', { desc = 'Move window to the left' })
|
||||||
--vim.keymap.set('n', '<C-L>', '<C-w>L', { desc = 'Move window to the right' })
|
--vim.keymap.set('n', '<C-L>', '<C-w>L', { desc = 'Move window to the right' })
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ require('lazy').setup({
|
|||||||
require 'eliaskohout.plugins.lazydev', -- lua nvim setup
|
require 'eliaskohout.plugins.lazydev', -- lua nvim setup
|
||||||
require 'eliaskohout.plugins.fugitive', -- git support
|
require 'eliaskohout.plugins.fugitive', -- git support
|
||||||
require 'eliaskohout.plugins.goyo', -- distraction free writing
|
require 'eliaskohout.plugins.goyo', -- distraction free writing
|
||||||
|
require 'eliaskohout.plugins.harpoon', -- quick switch lists
|
||||||
|
|
||||||
require 'eliaskohout.plugins.ax',
|
require 'eliaskohout.plugins.ax',
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
}
|
||||||
|
|||||||
@@ -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", "<leader>a", function() harpoon:list():add() end)
|
||||||
|
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(1) end)
|
||||||
|
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(2) end)
|
||||||
|
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(3) end)
|
||||||
|
vim.keymap.set("n", "<C-ö>", function() harpoon:list():select(4) end)
|
||||||
|
|
||||||
|
--vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
||||||
|
--vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user