summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-09-24 22:09:42 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-09-24 22:09:42 -0400
commit0d9d713f8fbe4f5bff7d2a06d8ba7ef4b8743009 (patch)
tree84db2ee1b69d42098cf099d17857912cec75be4b /lua
parentde67ab8e4b607bf3d7dd9f0741d961a6f77d30cd (diff)
Add flog plugin
Diffstat (limited to 'lua')
-rw-r--r--lua/ben/plugins/colorizer.lua2
-rw-r--r--lua/ben/plugins/flog.lua8
-rw-r--r--lua/ben/plugins/surround.lua5
3 files changed, 12 insertions, 3 deletions
diff --git a/lua/ben/plugins/colorizer.lua b/lua/ben/plugins/colorizer.lua
index c29c9bb..08bd85c 100644
--- a/lua/ben/plugins/colorizer.lua
+++ b/lua/ben/plugins/colorizer.lua
@@ -1,4 +1,4 @@
return {
"chrisbra/Colorizer",
- event = "VeryLazy",
+ event = { "BufReadPre", "BufNewFile" },
}
diff --git a/lua/ben/plugins/flog.lua b/lua/ben/plugins/flog.lua
new file mode 100644
index 0000000..44ac8f9
--- /dev/null
+++ b/lua/ben/plugins/flog.lua
@@ -0,0 +1,8 @@
+return {
+ "rbong/vim-flog",
+ dependencies = { "tpope/vim-fugitive" },
+ keys = {
+ { "<leader>gg", "<cmd>Flog<cr>" }, -- G.it G.raph
+ { "<leader>gv", "<cmd>Flogsplit<cr>" }, -- G.it V.ertical
+ },
+}
diff --git a/lua/ben/plugins/surround.lua b/lua/ben/plugins/surround.lua
index 8465f29..aef9e72 100644
--- a/lua/ben/plugins/surround.lua
+++ b/lua/ben/plugins/surround.lua
@@ -1,4 +1,5 @@
return {
- 'tpope/vim-surround',
- dependencies = 'tpope/vim-repeat'
+ "tpope/vim-surround",
+ dependencies = "tpope/vim-repeat",
+ event = { "BufReadPre", "BufNewFile" },
}