diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 13df586..d76d350 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1 +1,8 @@ +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", + lazypath}) +end +vim.opt.rtp:prepend(lazypath) + require("cole") diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json new file mode 100644 index 0000000..fb025f6 --- /dev/null +++ b/.config/nvim/lazy-lock.json @@ -0,0 +1,13 @@ +{ + "LuaSnip": { "branch": "master", "commit": "a62e1083a3cfe8b6b206e7d3d33a51091df25357" }, + "cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" }, + "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, + "lsp-zero.nvim": { "branch": "v3.x", "commit": "77550f2f6cbf0959ef1583d845661af075f3442b" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "0a3b42c3e503df87aef6d6513e13148381495c3a" }, + "mason.nvim": { "branch": "main", "commit": "12ddd182d9efbdc848b540f16484a583d52da0fb" }, + "nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" }, + "nvim-lspconfig": { "branch": "master", "commit": "e146efacbafed3789ac568abcc5a981c5decaa58" }, + "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, + "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, + "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" } +} diff --git a/.config/nvim/lua/cole/init.lua b/.config/nvim/lua/cole/init.lua index 659cb87..7bbfaef 100644 --- a/.config/nvim/lua/cole/init.lua +++ b/.config/nvim/lua/cole/init.lua @@ -1,4 +1,4 @@ require("cole.remap") require("cole.set") -require("cole.packer") +require("cole.lazy") diff --git a/.config/nvim/lua/cole/lazy.lua b/.config/nvim/lua/cole/lazy.lua new file mode 100644 index 0000000..0cacf58 --- /dev/null +++ b/.config/nvim/lua/cole/lazy.lua @@ -0,0 +1,16 @@ +require("lazy").setup({ -- Fuzzy finder +{ + 'nvim-telescope/telescope.nvim', + tag = '0.1.5', + dependencies = {'nvim-lua/plenary.nvim'} +}, -- syntax highlighting +{ + 'nvim-treesitter/nvim-treesitter', + build = ':TSUpdate' +}, -- LSP support +{ + 'VonHeikemen/lsp-zero.nvim', + branch = 'v3.x', + dependencies = {{'williamboman/mason.nvim'}, {'williamboman/mason-lspconfig.nvim'}, {'neovim/nvim-lspconfig'}, + {'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-nvim-lsp'}, {'L3MON4D3/LuaSnip'}} +}}) diff --git a/.config/nvim/lua/cole/packer.lua b/.config/nvim/lua/cole/packer.lua deleted file mode 100644 index 23afd32..0000000 --- a/.config/nvim/lua/cole/packer.lua +++ /dev/null @@ -1,34 +0,0 @@ --- This file can be loaded by calling `lua require('plugins')` from your init.vim --- Only required if you have packer configured as `opt` -vim.cmd [[packadd packer.nvim]] - -return require('packer').startup(function(use) - -- Packer can manage itself - use 'wbthomason/packer.nvim' - - -- Fuzzy finder - use { - 'nvim-telescope/telescope.nvim', - tag = '0.1.5', - -- or, branch = '0.1.x', - requires = {{'nvim-lua/plenary.nvim'}} - } - - -- syntax highlighting - use { - 'nvim-treesitter/nvim-treesitter', - run = ':TSUpdate' - } - - -- LSP support - use { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v3.x', - requires = {{'williamboman/mason.nvim'}, {'williamboman/mason-lspconfig.nvim'}, {'neovim/nvim-lspconfig'}, - {'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-nvim-lsp'}, {'L3MON4D3/LuaSnip'}} - } - - use {"williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim"} - -end) -