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_italic_function = true
vim.g.neon_transparent = true vim.g.neon_transparent = true
vim.cmd[[colorscheme neon]]
require('plugins') require('plugins')
require('gitsigns-config') require('gitsigns-config')
require('lsp') require('lsp')
@ -25,6 +23,7 @@ require('nvim-tree').setup({
enable = true enable = true
} }
}) })
vim.cmd[[colorscheme neon]]
local function open_nvim_tree(data) 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) if not vim.loop.fs_stat(pckr_path) then
use 'wbthomason/packer.nvim' vim.fn.system({
use 'lewis6991/gitsigns.nvim' 'git',
use 'posva/vim-vue' 'clone',
use 'editorconfig/editorconfig-vim' "--filter=blob:none",
use 'neovim/nvim-lspconfig' 'https://github.com/lewis6991/pckr.nvim',
use 'nvim-tree/nvim-tree.lua' pckr_path
use 'nvim-tree/nvim-web-devicons' })
use 'nvim-treesitter/nvim-treesitter' end
use 'rafamadriz/neon'
use { vim.opt.rtp:prepend(pckr_path)
'nvim-telescope/telescope.nvim', 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'} } requires = { {'nvim-lua/plenary.nvim'} }
} }
end) }