From 55a7f6dc136b01bbf781fec998f73250730165c9 Mon Sep 17 00:00:00 2001 From: venus Date: Mon, 9 Mar 2026 23:14:47 -0500 Subject: [PATCH] moved lazy setup into init file --- init.lua | 68 ++++++++++++++++++++++----------------------- lua/config/lazy.lua | 35 ----------------------- 2 files changed, 34 insertions(+), 69 deletions(-) diff --git a/init.lua b/init.lua index a165330..50ab5e9 100644 --- a/init.lua +++ b/init.lua @@ -10,37 +10,37 @@ require('keybinds') -- render lazt require("config.lazy") -- Bootstrap lazy.nvim --- --- local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" --- if not (vim.uv or vim.loop).fs_stat(lazypath) then --- local lazyrepo = "https://github.com/folke/lazy.nvim.git" --- local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) --- if vim.v.shell_error ~= 0 then --- vim.api.nvim_echo({ --- { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, --- { out, "WarningMsg" }, --- { "\nPress any key to exit..." }, --- }, true, {}) --- vim.fn.getchar() --- os.exit(1) --- end --- end --- vim.opt.rtp:prepend(lazypath) --- -- Make sure to setup `mapleader` and `maplocalleader` before --- -- loading lazy.nvim so that mappings are correct. --- -- This is also a good place to setup other settings (vim.opt) --- vim.g.mapleader = " " --- vim.g.maplocalleader = "\\" - --- -- Setup lazy.nvim --- require("lazy").setup({ --- spec = { --- -- import your plugins --- { import = "plugins" }, --- }, --- -- Configure any other settings here. See the documentation for more details. --- -- colorscheme that will be used when installing plugins. --- install = { colorscheme = { "retrobox" } }, --- -- automatically check for plugin updates --- checker = { enabled = true }, --- }) +-- lazy.nvim settings +require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + { + 'soywod/iris.vim', -- unsure + 'tpope/vim-commentary', -- commenting lines with shortcut + -- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line + 'kshenoy/vim-signature', -- tag lines + 'mg979/vim-visual-multi', -- work on multiple lines at once + 'obsidian-nvim/obsidian.nvim', -- work with obsidian + 'nvim-tree/nvim-web-devicons', -- nerdfont! + 'nvim-lualine/lualine.nvim', -- lualine + 'TamaMcGlinn/vim-termhere', --simple terminal QOL + "smjonas/inc-rename.nvim", + 'basola21/PDFview', + "rktjmp/lush.nvim", -- better theme editing + 'vyfor/cord.nvim', --discord rich presence + 'RRethy/base16-nvim', + {'NMAC427/guess-indent.nvim', config = function() require('guess-indent').setup {} end,}, -- Detect tabstop and shiftwidth automatically + { 'edluffy/hologram.nvim', auto_display = true,}, --image viewer + { "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart + {'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands + { 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + }, + }, + -- Configure any other settings here. See the documentation for more details. + -- colorscheme that will be used when installing plugins. + -- install = { colorscheme = { "habamax" } }, + -- automatically check for plugin updates + checker = { enabled = true }, +}) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index ee503aa..a1fcdce 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -15,38 +15,3 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) --- Setup lazy.nvim -require("lazy").setup({ - spec = { - -- import your plugins - { import = "plugins" }, - { - 'soywod/iris.vim', -- unsure - 'tpope/vim-commentary', -- commenting lines with shortcut - -- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line - 'kshenoy/vim-signature', -- tag lines - 'mg979/vim-visual-multi', -- work on multiple lines at once - {'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically - config = function() require('guess-indent').setup {} end,}, - 'obsidian-nvim/obsidian.nvim', -- work with obsidian - { 'edluffy/hologram.nvim', auto_display = true,}, --image viewer - 'nvim-tree/nvim-web-devicons', -- nerdfont! - 'nvim-lualine/lualine.nvim', -- lualine - 'TamaMcGlinn/vim-termhere', --simple terminal QOL - "rktjmp/lush.nvim", -- better theme editing - { "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart - {'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands - {'RRethy/base16-nvim'}, - { 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, - {'vyfor/cord.nvim'}, --discord rich presence - { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, - "smjonas/inc-rename.nvim", - 'basola21/PDFview', - }, - }, - -- Configure any other settings here. See the documentation for more details. - -- colorscheme that will be used when installing plugins. - install = { colorscheme = { "habamax" } }, - -- automatically check for plugin updates - checker = { enabled = true }, -})