From 1334df246cd71473f34f4f8dd9518b795e468b29 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 30 Jun 2021 22:32:35 -0400 Subject: updates --- lua/lv-which-key/init.lua | 5 +++++ lua/plugins.lua | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index 6afd61c6..45f9958f 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -266,6 +266,11 @@ if O.plugin.zen.active then {noremap = true, silent = true}) mappings["z"] = "Zen" end +if O.plugin.lazygit.active then + vim.api.nvim_set_keymap("n", "gg", ":LazyGit", + {noremap = true, silent = true}) + mappings["gg"] = "LazyGit" +end if O.plugin.telescope_project then -- open projects vim.api.nvim_set_keymap('n', 'p', diff --git a/lua/plugins.lua b/lua/plugins.lua index 60752ac5..683fd263 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -9,6 +9,23 @@ if fn.empty(fn.glob(install_path)) > 0 then execute "packadd packer.nvim" end +local packer_ok, packer = pcall(require, "packer") +if not packer_ok then + return +end + +packer.init { + -- compile_path = vim.fn.stdpath('data')..'/site/pack/loader/start/packer.nvim/plugin/packer_compiled.vim', + git = { + clone_timeout = 300 + }, + display = { + open_fn = function() + return require("packer.util").float { border = "single" } + end, + }, +} + vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua return require("packer").startup(function(use) -- cgit v1.2.3