|
|
@ -1,3 +1,16 @@ |
|
|
|
|
|
|
|
local ensure_packer = function() |
|
|
|
|
|
|
|
local fn = vim.fn |
|
|
|
|
|
|
|
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" |
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then |
|
|
|
|
|
|
|
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }) |
|
|
|
|
|
|
|
vim.cmd [[packadd packer.nvim]] |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local packer_bootstrap = ensure_packer() |
|
|
|
|
|
|
|
|
|
|
|
vim.cmd [[packadd packer.nvim]] |
|
|
|
vim.cmd [[packadd packer.nvim]] |
|
|
|
|
|
|
|
|
|
|
|
return require("packer").startup(function(use) |
|
|
|
return require("packer").startup(function(use) |
|
|
@ -46,8 +59,8 @@ return require("packer").startup(function(use) |
|
|
|
-- use "vimsence/vimsence" |
|
|
|
-- use "vimsence/vimsence" |
|
|
|
use "andweeb/presence.nvim" |
|
|
|
use "andweeb/presence.nvim" |
|
|
|
use { |
|
|
|
use { |
|
|
|
'nvim-lualine/lualine.nvim', |
|
|
|
"nvim-lualine/lualine.nvim", |
|
|
|
requires = { 'nvim-tree/nvim-web-devicons', opt = true } |
|
|
|
requires = { "nvim-tree/nvim-web-devicons", opt = true } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
use { |
|
|
|
use { |
|
|
@ -61,4 +74,9 @@ return require("packer").startup(function(use) |
|
|
|
"windwp/nvim-autopairs", |
|
|
|
"windwp/nvim-autopairs", |
|
|
|
config = function() require("nvim-autopairs").setup {} end |
|
|
|
config = function() require("nvim-autopairs").setup {} end |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if packer_bootstrap then |
|
|
|
|
|
|
|
require("packer").sync() |
|
|
|
|
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|