summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <sirtomato999@gmail.com> 2023-12-29 19:39:37 -0500
committerGravatar Matthew Wozniak <sirtomato999@gmail.com> 2023-12-29 19:39:37 -0500
commit047ea7318b352692b0c2cb49590d75ea1588c148 (patch)
tree069acb3e7045025f4b6ace8752617251d4ca0a2b /init.lua
parent256937593ad354a82c520b3c0968f0bb17e86768 (diff)
downloadnvim-047ea7318b352692b0c2cb49590d75ea1588c148.tar.gz
nvim-047ea7318b352692b0c2cb49590d75ea1588c148.zip
new config
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua53
1 files changed, 27 insertions, 26 deletions
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",
+})