added plugins lazy loading

This commit is contained in:
2025-07-14 23:23:45 +05:00
parent bcfc8fe296
commit 645e292b0d
2 changed files with 58 additions and 54 deletions

View File

@ -21,28 +21,30 @@ end
lazy.setup({ lazy.setup({
"nvim-lua/popup.nvim", -- An implementation of the Popup API from vim in Neovim -- "nvim-lua/popup.nvim", -- An implementation of the Popup API from vim in Neovim
"nvim-lua/plenary.nvim", -- Useful lua functions used ny lots of plugins { "windwp/nvim-autopairs", event = "VeryLazy" },
"navarasu/onedark.nvim",
"windwp/nvim-autopairs",
"hrsh7th/nvim-cmp", -- The completion plugin { "hrsh7th/nvim-cmp", event = "VeryLazy" }, -- The completion plugin
"hrsh7th/cmp-buffer", -- buffer completions { "hrsh7th/cmp-buffer", event = "VeryLazy" }, -- buffer completions
"hrsh7th/cmp-path", -- path completions { "hrsh7th/cmp-path", event = "VeryLazy" }, -- path completions
"hrsh7th/cmp-cmdline", -- cmdline completions { "hrsh7th/cmp-cmdline", event = "VeryLazy" }, -- cmdline completions
"saadparwaiz1/cmp_luasnip", -- snippet completions { "saadparwaiz1/cmp_luasnip", event = "VeryLazy" }, -- snippet completions
"hrsh7th/cmp-nvim-lsp", { "hrsh7th/cmp-nvim-lsp", event = "VeryLazy" },
-- snippets -- snippets
"L3MON4D3/LuaSnip", --snippet engine { "L3MON4D3/LuaSnip", event = "VeryLazy" }, --snippet engine
"rafamadriz/friendly-snippets", -- a bunch of snippets to use { "rafamadriz/friendly-snippets", event = "VeryLazy" }, -- a bunch of snippets to use
{ "dsznajder/vscode-es7-javascript-react-snippets", run = "yarn install --frozen-lockfile && yarn compile" }, {
"dsznajder/vscode-es7-javascript-react-snippets",
run = "yarn install --frozen-lockfile && yarn compile",
event = "VeryLazy"
},
-- LSP -- LSP
"williamboman/mason.nvim", -- simple to use language server installer { "williamboman/mason.nvim", event = "VeryLazy" }, -- simple to use language server installer
"williamboman/mason-lspconfig.nvim", { "williamboman/mason-lspconfig.nvim", event = "VeryLazy" },
"neovim/nvim-lspconfig", -- enable LSP { "neovim/nvim-lspconfig", event = "VeryLazy" }, -- enable LSP
"nvim-treesitter/nvim-treesitter-refactor", -- { "nvim-treesitter/nvim-treesitter-refactor", event = "VeryLazy" },
-- file explorer -- file explorer
-- { -- {
@ -61,18 +63,20 @@ lazy.setup({
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
} },
event = "VeryLazy"
} }
, ,
{ -- {
"akinsho/bufferline.nvim", -- "akinsho/bufferline.nvim",
version = "*", -- version = "*",
dependencies = { "kyazdani42/nvim-web-devicons" }, -- dependencies = { "kyazdani42/nvim-web-devicons" },
}, -- },
{ {
"ThePrimeagen/harpoon", "ThePrimeagen/harpoon",
branch = "harpoon2", branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },
event = "VeryLazy"
}, },
{ {
@ -81,29 +85,32 @@ lazy.setup({
window = { window = {
backdrop = 1 backdrop = 1
} }
} },
event = "VeryLazy"
}, },
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
run = ":TSUpdate", run = ":TSUpdate",
event = "VeryLazy"
}, },
{ {
"nvimtools/none-ls.nvim", "nvimtools/none-ls.nvim",
event = "VeryLazy"
}, },
"lukas-reineke/lsp-format.nvim", { "lukas-reineke/lsp-format.nvim", event = "VeryLazy" },
"Vimjas/vim-python-pep8-indent", -- "Vimjas/vim-python-pep8-indent",
--telescope --telescope
"nvim-telescope/telescope.nvim", { "nvim-telescope/telescope.nvim", event = "VeryLazy" },
"nvim-telescope/telescope-media-files.nvim", { "nvim-telescope/telescope-media-files.nvim", event = "VeryLazy" },
--comment out --comment out
"tpope/vim-commentary", { "tpope/vim-commentary", event = "VeryLazy" },
"lukas-reineke/indent-blankline.nvim", { "lukas-reineke/indent-blankline.nvim", event = "VeryLazy" },
"windwp/nvim-ts-autotag", { "windwp/nvim-ts-autotag", event = "VeryLazy" },
{ {
"rebelot/kanagawa.nvim", "rebelot/kanagawa.nvim",
@ -112,37 +119,34 @@ lazy.setup({
}, },
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
lazy = false, lazy = false,
}, },
--scrollbar --scrollbar
"petertriho/nvim-scrollbar", { "petertriho/nvim-scrollbar", event = "VeryLazy" },
--heirline statusbar --heirline statusbar
"rebelot/heirline.nvim", -- "rebelot/heirline.nvim",
--heirline statusbar --gitsigns
"lewis6991/gitsigns.nvim", { "lewis6991/gitsigns.nvim", event = "VeryLazy" },
--debugging --debugging
"mfussenegger/nvim-dap", { "mfussenegger/nvim-dap", event = "VeryLazy" },
{ {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
dependencies = { dependencies = {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
"nvim-neotest/nvim-nio" "nvim-neotest/nvim-nio"
} },
event = { "VeryLazy" }
}, },
"nvim-lualine/lualine.nvim", -- "nvim-lualine/lualine.nvim",
"folke/neodev.nvim", -- "folke/neodev.nvim",
"MunifTanjim/nui.nvim", -- "MunifTanjim/nui.nvim",
"b0o/schemastore.nvim", -- "b0o/schemastore.nvim",
-- { -- {
-- 'Bekaboo/dropbar.nvim', -- 'Bekaboo/dropbar.nvim',
-- -- optional, but required for fuzzy finder support -- -- optional, but required for fuzzy finder support
@ -150,13 +154,13 @@ lazy.setup({
-- 'nvim-telescope/telescope-fzf-native.nvim' -- 'nvim-telescope/telescope-fzf-native.nvim'
-- } -- }
-- }, -- },
{ -- {
"LunarVim/breadcrumbs.nvim", -- "LunarVim/breadcrumbs.nvim",
dependencies = { -- dependencies = {
{ "SmiteshP/nvim-navic" }, -- { "SmiteshP/nvim-navic" },
}, -- },
}, -- },
{ -- {
"karb94/neoscroll.nvim", -- "karb94/neoscroll.nvim",
}, -- },
}) })