From 047ea7318b352692b0c2cb49590d75ea1588c148 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Fri, 29 Dec 2023 19:39:37 -0500 Subject: new config --- init.lua | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 1909781..31cace1 100644 --- a/init.lua +++ b/init.lua @@ -1,27 +1,28 @@ -require('wozniak') +-- Install lazy.nvim on new systems +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) -vim.cmd [[packadd packer.nvim]] - -return require('packer').startup(function(use) - -- Packer can manage itself - use 'wbthomason/packer.nvim' - use { - 'nvim-telescope/telescope.nvim', tag = '0.1.1', - -- or , branch = '0.1.x', - requires = { {'nvim-lua/plenary.nvim'} } - } - use { 'nvim-treesitter/nvim-treesitter', run = {':TSUpdate' } } - use { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v2.x', - requires = { - -- LSP Support - {'neovim/nvim-lspconfig'}, -- Required - - -- Autocompletion - {'hrsh7th/nvim-cmp'}, -- Required - {'hrsh7th/cmp-nvim-lsp'}, -- Required - {'L3MON4D3/LuaSnip'}, -- Required - } - } -end) +-- Plugin manager +require("lazy").setup({ + "junegunn/seoul256.vim", + "neovim/nvim-lspconfig", + "hrsh7th/nvim-cmp", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "saadparwaiz1/cmp_luasnip", + "hrsh7th/cmp-nvim-lsp", + "L3MON4D3/LuaSnip", + "rafamadriz/friendly-snippets", + {"nvim-telescope/telescope.nvim", dependencies = {"nvim-lua/plenary.nvim"}}, + "nvim-lualine/lualine.nvim", +}) -- cgit v1.2.3-54-g00ecf