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