summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-06-28 18:01:34 -0400
committerchristianchiarulli <[email protected]>2021-06-28 18:01:34 -0400
commitf312d3c88b51e65cb1f1cd2f8846ef1f5e04fc13 (patch)
treee4c7f2dc6f70855388f8efc0820f15f1c89dfa78
parent6e6cc4cfb634a499666e2e0ca6ed6eaa56feaad5 (diff)
plugins configured
-rw-r--r--lua/default-config.lua4
-rw-r--r--lua/plugins.lua52
2 files changed, 42 insertions, 14 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua
index f10ff3c7..92d19fdf 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -52,6 +52,10 @@ O = {
lsp_colors = {active = false},
git_blame = {active = false},
gitlinker = {active = false},
+ lazygit = {active = false},
+ octo = {active = false},
+ diffview = {active = false},
+ bracey = {active = false},
telescope_project = {active = false}
},
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 589b41c5..1c5088cd 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -330,21 +330,45 @@ return require("packer").startup(function(use)
requires = 'nvim-lua/plenary.nvim'
}
- -- Git
- -- https://github.com/kdheepak/lazygit.nvim
- -- pwntester/octo.nvim
- -- use 'sindrets/diffview.nvim'
+ -- Lazygit
+ use {
+ "kdheepak/lazygit.nvim",
+ cmd = "LazyGit",
+ disable = not O.plugin.lazygit.active
+ }
+ -- Lazygit
+ use {
+ "pwntester/octo.nvim",
+ event = "BufRead",
+ disable = not O.plugin.octo.active
+ }
+ -- Diffview
+ use {
+ "sindrets/diffview.nvim",
+ event = "BufRead",
+ disable = not O.plugin.diffview.active
+ }
-- Easily Create Gists
- -- use {'mattn/vim-gist', opt = true}
- -- use {'mattn/webapi-vim', opt = true}
-
- -- Not sure yet
+ use {
+ "mattn/vim-gist",
+ event = "BufRead",
+ disable = not O.plugin.gist.active,
+ requires = 'mattn/webapi-vim'
+ }
-- HTML preview
- -- use {
- -- 'turbio/bracey.vim',
- -- run = 'npm install --prefix server',
- -- opt = true
- -- }
+ use {
+ 'turbio/bracey.vim',
+ event = "BufRead",
+ run = 'npm install --prefix server',
+ disable = not O.plugin.bracey.active
+ }
+
+ -- LANGUAGE SPECIFIC GOES HERE
+
-- Latex TODO what filetypes should this be active for?
- -- use {"lervag/vimtex", opt = true}
+ use {
+ "lervag/vimtex",
+ ft = "latex",
+ disable = not O.lang.latex.active
+ }
end)