First version of the packer plugin setup calls

This commit is contained in:
2022-03-16 17:22:06 +01:00
parent d1b14f05c1
commit 7e1182a11b
3 changed files with 95 additions and 73 deletions

View File

@ -5,20 +5,6 @@ local opt = vim.opt -- to set options
local utils = require('utils')
local packerUtil = require'packer.util'
-------------------- PACKER --------------------------------
-- Auto install packer.nvim if not exists
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'
end
vim.cmd [[packadd packer.nvim]]
require('packer').init({
snapshot_path = packerUtil.join_paths(vim.fn.stdpath('config'), 'snapshots'),
display = {
open_fn = require('packer.util').float,
}
})
-------------------- EXTERNAL ------------------------------
require('my_plugins')
require('my_keymappings')
@ -26,7 +12,6 @@ require('my_options')
require("my_autocommands")
-- plugins
require('my_telescope')
require('my_lspinstall')
require('my_cmp')
require('my_neogen')