Migrate to pckr

This commit is contained in:
Georg Krause 2024-02-01 12:35:37 +01:00
parent b902dae549
commit 9ea586b5d0
2 changed files with 31 additions and 16 deletions

View file

@ -15,8 +15,6 @@ vim.g.neon_italic_keyword = true
vim.g.neon_italic_function = true
vim.g.neon_transparent = true
vim.cmd[[colorscheme neon]]
require('plugins')
require('gitsigns-config')
require('lsp')
@ -25,6 +23,7 @@ require('nvim-tree').setup({
enable = true
}
})
vim.cmd[[colorscheme neon]]
local function open_nvim_tree(data)

View file

@ -1,17 +1,33 @@
vim.cmd [[packadd packer.nvim]]
local function bootstrap_pckr()
local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'lewis6991/gitsigns.nvim'
use 'posva/vim-vue'
use 'editorconfig/editorconfig-vim'
use 'neovim/nvim-lspconfig'
use 'nvim-tree/nvim-tree.lua'
use 'nvim-tree/nvim-web-devicons'
use 'nvim-treesitter/nvim-treesitter'
use 'rafamadriz/neon'
use {
'nvim-telescope/telescope.nvim',
if not vim.loop.fs_stat(pckr_path) then
vim.fn.system({
'git',
'clone',
"--filter=blob:none",
'https://github.com/lewis6991/pckr.nvim',
pckr_path
})
end
vim.opt.rtp:prepend(pckr_path)
end
bootstrap_pckr()
return require('pckr').add{
'wbthomason/packer.nvim';
'lewis6991/gitsigns.nvim';
'posva/vim-vue';
'editorconfig/editorconfig-vim';
'neovim/nvim-lspconfig';
'nvim-tree/nvim-tree.lua';
'nvim-tree/nvim-web-devicons';
'nvim-treesitter/nvim-treesitter';
'rafamadriz/neon';
{
'nvim-telescope/telescope.nvim', branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
}
end)
}