forked from cpow/cpow-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,51 @@ | ||
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 | ||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||
if not vim.loop.fs_stat(lazypath) then | ||
vim.fn.system({ | ||
"git", | ||
"clone", | ||
"--filter=blob:none", | ||
"https://github.com/folke/lazy.nvim.git", | ||
"--branch=stable", -- latest stable release | ||
lazypath, | ||
}) | ||
end | ||
vim.opt.rtp:prepend(lazypath) | ||
|
||
local packer_bootstrap = ensure_packer() | ||
|
||
return require('packer').startup(function(use) | ||
use 'wbthomason/packer.nvim' | ||
use 'ellisonleao/gruvbox.nvim' | ||
use 'dracula/vim' | ||
use 'nvim-tree/nvim-tree.lua' | ||
use 'nvim-tree/nvim-web-devicons' | ||
use 'nvim-lualine/lualine.nvim' | ||
use 'nvim-treesitter/nvim-treesitter' | ||
use 'bluz71/vim-nightfly-colors' | ||
use 'vim-test/vim-test' | ||
use 'lewis6991/gitsigns.nvim' | ||
use 'preservim/vimux' | ||
use 'christoomey/vim-tmux-navigator' | ||
use 'tpope/vim-fugitive' | ||
local plugins = { | ||
'wbthomason/packer.nvim', | ||
'ellisonleao/gruvbox.nvim', | ||
{ | ||
'dracula/vim', | ||
lazy = false, | ||
}, | ||
'nvim-tree/nvim-tree.lua', | ||
'nvim-tree/nvim-web-devicons', | ||
'nvim-lualine/lualine.nvim', | ||
'nvim-treesitter/nvim-treesitter', | ||
'bluz71/vim-nightfly-colors', | ||
'vim-test/vim-test', | ||
'lewis6991/gitsigns.nvim', | ||
'preservim/vimux', | ||
'christoomey/vim-tmux-navigator', | ||
'tpope/vim-fugitive', | ||
-- completion | ||
use 'hrsh7th/nvim-cmp' | ||
use 'hrsh7th/cmp-nvim-lsp' | ||
use 'L3MON4D3/LuaSnip' | ||
use 'saadparwaiz1/cmp_luasnip' | ||
use "rafamadriz/friendly-snippets" | ||
|
||
use "github/copilot.vim" | ||
|
||
use { | ||
"williamboman/mason.nvim", | ||
"williamboman/mason-lspconfig.nvim", | ||
"neovim/nvim-lspconfig", | ||
"glepnir/lspsaga.nvim", | ||
} | ||
|
||
use { | ||
'hrsh7th/nvim-cmp', | ||
'hrsh7th/cmp-nvim-lsp', | ||
'L3MON4D3/LuaSnip', | ||
'saadparwaiz1/cmp_luasnip', | ||
"rafamadriz/friendly-snippets", | ||
"github/copilot.vim", | ||
"williamboman/mason.nvim", | ||
"neovim/nvim-lspconfig", | ||
"williamboman/mason-lspconfig.nvim", | ||
"glepnir/lspsaga.nvim", | ||
{ | ||
'nvim-telescope/telescope.nvim', | ||
tag = '0.1.0', | ||
requires = { {'nvim-lua/plenary.nvim'} } | ||
dependencies = { {'nvim-lua/plenary.nvim'} } | ||
} | ||
} | ||
|
||
local opts = {} | ||
|
||
-- Automatically set up your configuration after cloning packer.nvim | ||
-- Put this at the end after all plugins | ||
if packer_bootstrap then | ||
require('packer').sync() | ||
end | ||
end) | ||
require("lazy").setup(plugins, opts) |