Sfoglia il codice sorgente

plugins configured

christianchiarulli 4 anni fa
parent
commit
f312d3c88b
2 ha cambiato i file con 42 aggiunte e 14 eliminazioni
  1. 4 0
      lua/default-config.lua
  2. 38 14
      lua/plugins.lua

+ 4 - 0
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}
 
     },

+ 38 - 14
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)