aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2023-09-25 18:32:26 -0400
committerZach Berwaldt <zberwaldt@tutamail.com>2023-09-25 18:32:26 -0400
commitfb6d08dabb1f500aac84be26fc10185b60a30820 (patch)
tree3283c12ce9d73cae241cc022846898e32e29f47b
parent3c0144a282f754f0ea02c18f19d49cee78f1279b (diff)
add some additional plugins, and configure them.
-rw-r--r--after/plugin/fugitive.lua1
-rw-r--r--after/plugin/harpoon.lua11
-rw-r--r--after/plugin/undotree.lua1
-rw-r--r--lua/zberwaldt/packer.lua4
-rw-r--r--plugin/packer_compiled.lua20
5 files changed, 37 insertions, 0 deletions
diff --git a/after/plugin/fugitive.lua b/after/plugin/fugitive.lua
new file mode 100644
index 0000000..73b78b8
--- /dev/null
+++ b/after/plugin/fugitive.lua
@@ -0,0 +1 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git);
diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua
new file mode 100644
index 0000000..dc4f254
--- /dev/null
+++ b/after/plugin/harpoon.lua
@@ -0,0 +1,11 @@
1local mark = require("harpoon.mark")
2local ui = require("harpoon.ui")
3
4vim.keymap.set("n", "<leader>a", mark.add_file)
5vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
6
7vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
8vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
9vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
10vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)
11
diff --git a/after/plugin/undotree.lua b/after/plugin/undotree.lua
new file mode 100644
index 0000000..b6b9276
--- /dev/null
+++ b/after/plugin/undotree.lua
@@ -0,0 +1 @@
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
diff --git a/lua/zberwaldt/packer.lua b/lua/zberwaldt/packer.lua
index 2be30ef..030c760 100644
--- a/lua/zberwaldt/packer.lua
+++ b/lua/zberwaldt/packer.lua
@@ -17,4 +17,8 @@ return require('packer').startup(function(use)
17 }) 17 })
18 18
19 use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate'}) 19 use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate'})
20 use('nvim-treesitter/playground')
21 use('theprimeagen/harpoon')
22 use('mbbill/undotree')
23 use('tpope/vim-fugitive')
20end) 24end)
diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua
index 49851ef..5c9c711 100644
--- a/plugin/packer_compiled.lua
+++ b/plugin/packer_compiled.lua
@@ -74,6 +74,11 @@ end
74time([[try_loadstring definition]], false) 74time([[try_loadstring definition]], false)
75time([[Defining packer_plugins]], true) 75time([[Defining packer_plugins]], true)
76_G.packer_plugins = { 76_G.packer_plugins = {
77 harpoon = {
78 loaded = true,
79 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/harpoon",
80 url = "https://github.com/theprimeagen/harpoon"
81 },
77 ["nvim-treesitter"] = { 82 ["nvim-treesitter"] = {
78 loaded = true, 83 loaded = true,
79 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/nvim-treesitter", 84 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
@@ -90,6 +95,11 @@ _G.packer_plugins = {
90 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/packer.nvim", 95 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/packer.nvim",
91 url = "https://github.com/wbthomason/packer.nvim" 96 url = "https://github.com/wbthomason/packer.nvim"
92 }, 97 },
98 playground = {
99 loaded = true,
100 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/playground",
101 url = "https://github.com/nvim-treesitter/playground"
102 },
93 ["plenary.nvim"] = { 103 ["plenary.nvim"] = {
94 loaded = true, 104 loaded = true,
95 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/plenary.nvim", 105 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/plenary.nvim",
@@ -99,6 +109,16 @@ _G.packer_plugins = {
99 loaded = true, 109 loaded = true,
100 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/telescope.nvim", 110 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/telescope.nvim",
101 url = "https://github.com/nvim-telescope/telescope.nvim" 111 url = "https://github.com/nvim-telescope/telescope.nvim"
112 },
113 undotree = {
114 loaded = true,
115 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/undotree",
116 url = "https://github.com/mbbill/undotree"
117 },
118 ["vim-fugitive"] = {
119 loaded = true,
120 path = "/home/zberwaldt/.local/share/nvim/site/pack/packer/start/vim-fugitive",
121 url = "https://github.com/tpope/vim-fugitive"
102 } 122 }
103} 123}
104 124