From b55ca145f8ede85fccc15c54fe3a132eeaf6fedf Mon Sep 17 00:00:00 2001 From: Dionisio E Alonso Date: Tue, 26 Mar 2024 17:03:08 -0300 Subject: [PATCH] feat(vim-plugins): Add lazy.nvim to Neovim config Continuing the process of migrating git-submodules for Neovim and Vim to plugin managers. Now is the time for Neovim plugins. --- nvim/init.vim | 2 ++ nvim/lua/plugins.lua | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 nvim/lua/plugins.lua diff --git a/nvim/init.vim b/nvim/init.vim index 7037086..dc5381f 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -59,6 +59,8 @@ set foldexpr=nvim_treesitter#foldexpr() set foldtext="" set nofoldenable +lua require("plugins") + " Theming let g:aldmeris_transparent = v:true let g:aldmeris_termcolors = 'tango' diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua new file mode 100644 index 0000000..28d4bcc --- /dev/null +++ b/nvim/lua/plugins.lua @@ -0,0 +1,14 @@ +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.uv.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) + +require("lazy").setup()