mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-23 13:48:35 +02:00
Config Update
- Added a bunch of plugins - Added `minicyan` colorscheme
This commit is contained in:
parent
5bdde24dfb
commit
2080d9aa9c
8 changed files with 849 additions and 61 deletions
42
lua/custom/plugins/harpoon.lua
Normal file
42
lua/custom/plugins/harpoon.lua
Normal file
|
@ -0,0 +1,42 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
opts = {
|
||||
menu = {
|
||||
width = vim.api.nvim_win_get_width(0) - 4,
|
||||
},
|
||||
settings = {
|
||||
save_on_toggle = true,
|
||||
},
|
||||
},
|
||||
keys = function()
|
||||
local keys = {
|
||||
{
|
||||
'<leader>a',
|
||||
function()
|
||||
require('harpoon'):list():add()
|
||||
end,
|
||||
desc = 'Harpoon File',
|
||||
},
|
||||
{
|
||||
'<leader>H',
|
||||
function()
|
||||
local harpoon = require 'harpoon'
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end,
|
||||
desc = 'Harpoon Quick Menu',
|
||||
},
|
||||
}
|
||||
|
||||
for i = 1, 5 do
|
||||
table.insert(keys, {
|
||||
'<leader>' .. i,
|
||||
function()
|
||||
require('harpoon'):list():select(i)
|
||||
end,
|
||||
desc = 'Harpoon to File ' .. i,
|
||||
})
|
||||
end
|
||||
return keys
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue