removing clunky editors and replacing neovim with kickstart
This commit is contained in:
30
shared/.config/nvim/lua/custom/plugins/harpoon.lua
Normal file
30
shared/.config/nvim/lua/custom/plugins/harpoon.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
return {
|
||||
{
|
||||
'ThePrimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
local harpoon = require 'harpoon'
|
||||
harpoon:setup()
|
||||
|
||||
-- Add current file to list
|
||||
vim.keymap.set('n', '<leader>a', function() harpoon:list():add() end,
|
||||
{ desc = 'Harpoon: [A]dd file' })
|
||||
|
||||
-- Toggle the quick menu
|
||||
vim.keymap.set('n', '<leader>e', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end,
|
||||
{ desc = 'Harpoon: Toggle m[E]nu' })
|
||||
|
||||
-- Jump to file slots 1-4
|
||||
-- NOTE: avoid <C-h/j/k/l> - kickstart uses these for window navigation
|
||||
vim.keymap.set('n', '<leader>1', function() harpoon:list():select(1) end, { desc = 'Harpoon: File [1]' })
|
||||
vim.keymap.set('n', '<leader>2', function() harpoon:list():select(2) end, { desc = 'Harpoon: File [2]' })
|
||||
vim.keymap.set('n', '<leader>3', function() harpoon:list():select(3) end, { desc = 'Harpoon: File [3]' })
|
||||
vim.keymap.set('n', '<leader>4', function() harpoon:list():select(4) end, { desc = 'Harpoon: File [4]' })
|
||||
|
||||
-- Prev/Next in list
|
||||
vim.keymap.set('n', '<leader>[', function() harpoon:list():prev() end, { desc = 'Harpoon: Prev' })
|
||||
vim.keymap.set('n', '<leader>]', function() harpoon:list():prev() end, { desc = 'Harpoon: Next' })
|
||||
end,
|
||||
},
|
||||
}
|
||||
8
shared/.config/nvim/lua/custom/plugins/init.lua
Normal file
8
shared/.config/nvim/lua/custom/plugins/init.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
-- You can add your own plugins here or in other files in this directory!
|
||||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
|
||||
---@module 'lazy'
|
||||
---@type LazySpec
|
||||
return {}
|
||||
Reference in New Issue
Block a user