Compare commits

..

No commits in common. "89c34c76892122c946ad792eac3b9c01e3c0873b" and "c6669af194184d569c966b87aa24d0f4101651cc" have entirely different histories.

2 changed files with 9 additions and 20 deletions

View file

@ -102,6 +102,7 @@ in {
tldr
unzip
vim
vimPlugins.vim-packer
virtio-win
vscode
wget

View file

@ -52,27 +52,16 @@ vim.opt.fixeol = false
local data_dir = vim.fn.has('nvim') == 1 and vim.fn.stdpath('data') .. '/site' or '~/.vim'
-- Ensure packer is installed
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
if vim.fn.empty(vim.fn.glob(data_dir .. '/autoload/plug.vim')) == 1 then
vim.fn.system({
'curl', '-fLo', data_dir .. '/autoload/plug.vim', '--create-dirs',
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
})
vim.cmd('autocmd VimEnter * PlugInstall --sync | source $MYVIMRC')
end
-- Use a protected call so we don't error out on first use
local status_ok, packer = pcall(require, "packer")
if not status_ok then
return
end
-- Have packer use a popup window
packer.init {
display = {
open_fn = function()
return require('packer.util').float { border = 'rounded' }
end,
},
}
-- Initialize packer.nvim
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
@ -97,7 +86,6 @@ return require('packer').startup(function(use)
use 'github/copilot.vim'
use {'CopilotC-Nvim/CopilotChat.nvim', branch = 'canary'}
end)
vim.cmd [[packadd packer.nvim]]
-- Copilot Chat
local prompts = require('CopilotChat.prompts')