adding copilot and harpoon

This commit is contained in:
Lorne Stalker 2023-08-14 10:40:46 +01:00
parent f0287843d8
commit 3106037ce8
3 changed files with 24 additions and 2 deletions

View File

@ -163,6 +163,8 @@ require('lazy').setup({
-- These are some example plugins that I've included in the kickstart repository.
-- Uncomment any of the lines below to enable them.
require 'lornest.plugins.fugitive',
require 'lornest.plugins.harpoon',
require 'lornest.plugins.copilot',
-- require 'kickstart.plugins.autoformat',
-- require 'kickstart.plugins.debug',

View File

@ -0,0 +1,5 @@
return {
{
"github/copilot.vim",
},
}

View File

@ -0,0 +1,15 @@
return {
'ThePrimeagen/harpoon',
config = function()
local mark = require("harpoon.mark")
local ui = require("harpoon.ui")
vim.keymap.set("n", "<leader>ha", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)
end,
}