-- Load packer.nvim
local packer = require('packer')

-- Start defining plugins
return packer.startup(function(use)
  -- Install packer.nvim
  use 'wbthomason/packer.nvim'

  -- Github Theme
  use ({ 'projekt0n/github-nvim-theme', tag = 'v0.0.7',
    config = function()
      require('github-theme').setup({
        theme_style = "dark_default",
      })
    end
  })

  -- Indent-blankline
  use {"lukas-reineke/indent-blankline.nvim",
    config = function()
      require("indent_blankline").setup {
      }
    end,
  }

  -- Neo-Tree
  use {"nvim-neo-tree/neo-tree.nvim",
    branch = "v2.x",
    requires = { 
      "nvim-lua/plenary.nvim",
      "nvim-tree/nvim-web-devicons", 
	    "MunifTanjim/nui.nvim",
    }
  }
  
  -- Lualine
  use {'nvim-lualine/lualine.nvim',
  after = 'github-nvim-theme',
    requires = { 'kyazdani42/nvim-web-devicons', opt = true },
      config = function()
        require('lualine').setup {
          options = {
            theme = 'auto'
          }
        }  
      end
  }

  -- Git Blame Line
  use {
  'tveskag/nvim-blame-line',
    requires = {'nvim-lua/plenary.nvim'},
  }

  -- Git Integration
  use { 'TimUntersberger/neogit', 
    requires = 'nvim-lua/plenary.nvim'
  }

  -- Autobracket
  use {'windwp/nvim-autopairs', 
    config = function() 
      require('nvim-autopairs').setup() 
    end
  }

  
  -- Color Preview
  use { 'ap/vim-css-color', 
    ft = { 
      'css', 
      'sass', 
      'scss', 
      'rasi', 
      'markdown' 
    } 
  }

end)

