mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-30 23:54:50 +02:00
updates
This commit is contained in:
parent
e541ef5482
commit
1334df246c
2 changed files with 22 additions and 0 deletions
|
@ -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", "<leader>gg", ":LazyGit<CR>",
|
||||
{noremap = true, silent = true})
|
||||
mappings["gg"] = "LazyGit"
|
||||
end
|
||||
if O.plugin.telescope_project then
|
||||
-- open projects
|
||||
vim.api.nvim_set_keymap('n', '<leader>p',
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue