Merge branch 'master' of github.com:almqv/dotfiles

laptop
E. Almqvist 2 years ago
commit 83b550136e
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 1
      nvim/.config/nvim/lua/evim/init.lua
  2. 22
      nvim/.config/nvim/lua/evim/packer.lua

@ -1,3 +1,2 @@
require("evim.remap") -- Default binds require("evim.remap") -- Default binds
require("evim.packer") -- Package manager require("evim.packer") -- Package manager

@ -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)

Loading…
Cancel
Save