diff options
-rw-r--r-- | lua/default-config.lua | 4 | ||||
-rw-r--r-- | lua/plugins.lua | 52 |
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) |