diff options
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 52 |
1 files changed, 38 insertions, 14 deletions
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) |