Files
Nvim/lua/config/lazy.lua
2026-03-09 23:06:12 -05:00

56 lines
2.2 KiB
Lua

-- 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)
-- 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'}
},
-- { 'RRethy/base16-nvim', config = function() require('matugen').setup() end, }
},
-- 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 },
})