migrate from packer to lazy
This commit is contained in:
		@@ -1,141 +0,0 @@
 | 
			
		||||
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
 | 
			
		||||
 | 
			
		||||
-- Only required if you have packer configured as `opt`
 | 
			
		||||
vim.cmd [[packadd packer.nvim]]
 | 
			
		||||
 | 
			
		||||
return require('packer').startup(function(use)
 | 
			
		||||
    -- Packer can manage itself
 | 
			
		||||
    use 'wbthomason/packer.nvim'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- treesitter
 | 
			
		||||
    use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
 | 
			
		||||
    use ('nvim-treesitter/playground')
 | 
			
		||||
    use ('nvim-treesitter/nvim-treesitter-context')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- useful
 | 
			
		||||
    use { 'rmagatti/auto-session' }
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'rmagatti/session-lens',
 | 
			
		||||
        requires = {'rmagatti/auto-session', 'nvim-telescope/telescope.nvim'},
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'nvim-telescope/telescope.nvim', branch = '0.1.x',
 | 
			
		||||
        requires = 'nvim-lua/plenary.nvim'
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'ThePrimeagen/harpoon',
 | 
			
		||||
        requires = 'nvim-lua/plenary.nvim'
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'NeogitOrg/neogit',
 | 
			
		||||
        requires = 'nvim-lua/plenary.nvim'
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use { 'stevearc/oil.nvim' }
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        "nvim-neorg/neorg",
 | 
			
		||||
        tag = "*",
 | 
			
		||||
        run = ":Neorg sync-parsers",
 | 
			
		||||
        requires = "nvim-lua/plenary.nvim",
 | 
			
		||||
        config = function ()
 | 
			
		||||
            require('neorg').setup {
 | 
			
		||||
                load = {
 | 
			
		||||
                    ["core.defaults"] = {},
 | 
			
		||||
                    ["core.concealer"] = {},
 | 
			
		||||
                    ["core.summary"] = {},
 | 
			
		||||
                    ["core.export"] = {},
 | 
			
		||||
                    ["core.export.markdown"] = {},
 | 
			
		||||
                    ["core.ui"] = {},
 | 
			
		||||
                    ["core.ui.calendar"] = {},
 | 
			
		||||
                    ["core.dirman"] = {
 | 
			
		||||
                        config = {
 | 
			
		||||
                            workspaces = {
 | 
			
		||||
                                notes = "~/Documents/Notes",
 | 
			
		||||
                            },
 | 
			
		||||
                            default_workspace = "notes",
 | 
			
		||||
                        },
 | 
			
		||||
                    },
 | 
			
		||||
                },
 | 
			
		||||
            }
 | 
			
		||||
        end
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use({
 | 
			
		||||
        "kylechui/nvim-surround",
 | 
			
		||||
        tag = "*", -- Use for stability; omit to use `main` branch for the latest features
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("nvim-surround").setup()
 | 
			
		||||
        end
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'numToStr/Comment.nvim',
 | 
			
		||||
        config = function()
 | 
			
		||||
            require('Comment').setup()
 | 
			
		||||
        end
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use ('mbbill/undotree')
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'm4xshen/autoclose.nvim',
 | 
			
		||||
        config = function ()
 | 
			
		||||
            require("autoclose").setup()
 | 
			
		||||
        end
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- pretty
 | 
			
		||||
    use {
 | 
			
		||||
        'navarasu/onedark.nvim',
 | 
			
		||||
        config = function()
 | 
			
		||||
            vim.cmd('colorscheme onedark')
 | 
			
		||||
        end
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    use { "lukas-reineke/indent-blankline.nvim" }
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        "utilyre/barbecue.nvim", tag = "*",
 | 
			
		||||
        requires = {
 | 
			
		||||
            "SmiteshP/nvim-navic",
 | 
			
		||||
            "nvim-tree/nvim-web-devicons", -- optional dependency
 | 
			
		||||
        },
 | 
			
		||||
        after = "nvim-web-devicons", -- keep this if you're using NvChad
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("barbecue").setup()
 | 
			
		||||
        end,
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- lsp
 | 
			
		||||
    use ('github/copilot.vim')
 | 
			
		||||
 | 
			
		||||
    use {
 | 
			
		||||
        'VonHeikemen/lsp-zero.nvim',
 | 
			
		||||
        branch = 'v2.x',
 | 
			
		||||
        requires = {
 | 
			
		||||
            -- LSP Support
 | 
			
		||||
            {'neovim/nvim-lspconfig'},             -- Required
 | 
			
		||||
            {                                      -- Optional
 | 
			
		||||
            'williamboman/mason.nvim',
 | 
			
		||||
            run = function()
 | 
			
		||||
                pcall(vim.cmd, 'MasonUpdate')
 | 
			
		||||
            end,
 | 
			
		||||
        },
 | 
			
		||||
        {'williamboman/mason-lspconfig.nvim'}, -- Optional
 | 
			
		||||
 | 
			
		||||
        -- Autocompletion
 | 
			
		||||
        {'hrsh7th/nvim-cmp'},     -- Required
 | 
			
		||||
        {'hrsh7th/cmp-nvim-lsp'}, -- Required
 | 
			
		||||
        {'L3MON4D3/LuaSnip'},     -- Required
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
end)
 | 
			
		||||
							
								
								
									
										126
									
								
								lua/sevi-kun/plugins.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										126
									
								
								lua/sevi-kun/plugins.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,126 @@
 | 
			
		||||
-- lazy.nvim plugins
 | 
			
		||||
 | 
			
		||||
return {
 | 
			
		||||
    -- treesitter
 | 
			
		||||
    { "nvim-treesitter/nvim-treesitter",
 | 
			
		||||
        build = ":TSUpdate"
 | 
			
		||||
    },
 | 
			
		||||
    { "nvim-treesitter/playground" },
 | 
			
		||||
    { "nvim-treesitter/nvim-treesitter-context" },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- useful
 | 
			
		||||
    { "rmagatti/session-lens",
 | 
			
		||||
        dependencies = {
 | 
			
		||||
            "rmagatti/auto-session",
 | 
			
		||||
            "nvim-telescope/telescope.nvim"
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "nvim-telescope/telescope.nvim", version = "0.1.x",
 | 
			
		||||
        dependencies = { "nvim-lua/plenary.nvim" }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "ThePrimeagen/harpoon",
 | 
			
		||||
    	version = "harpoon2",
 | 
			
		||||
        dependencies = { "nvim-lua/plenary.nvim" },
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "NeogitOrg/neogit",
 | 
			
		||||
        dependencies = { "nvim-lua/plenary.nvim" }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "stevearc/oil.nvim" },
 | 
			
		||||
 | 
			
		||||
    { "nvim-neorg/neorg",
 | 
			
		||||
        version = "*",
 | 
			
		||||
        build = ":Neorg sync-parsers",
 | 
			
		||||
        dependencies = { "nvim-lua/plenary.nvim" },
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("neorg").setup {
 | 
			
		||||
                load = {
 | 
			
		||||
                    ["core.defaults"] = {}, -- Loads default behaviour
 | 
			
		||||
                    ["core.concealer"] = {}, -- Adds pretty icons to your documents
 | 
			
		||||
                    ["core.dirman"] = { -- Manages Neorg workspaces
 | 
			
		||||
                        config = {
 | 
			
		||||
                            workspaces = {
 | 
			
		||||
                                notes = "~/Documents/Notes",
 | 
			
		||||
                            },
 | 
			
		||||
                            default_workspace = "notes",
 | 
			
		||||
                        },
 | 
			
		||||
                    },
 | 
			
		||||
                },
 | 
			
		||||
            }
 | 
			
		||||
        end,
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "kylechui/nvim-surround",
 | 
			
		||||
        version = "*",
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("nvim-surround").setup()
 | 
			
		||||
        end
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "numToStr/Comment.nvim",
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("Comment").setup()
 | 
			
		||||
        end
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "mbbill/undotree" },
 | 
			
		||||
 | 
			
		||||
    { "m4xshen/autoclose.nvim",
 | 
			
		||||
        config = function ()
 | 
			
		||||
            require("autoclose").setup()
 | 
			
		||||
        end
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- pretty
 | 
			
		||||
 | 
			
		||||
    { "navarasu/onedark.nvim",
 | 
			
		||||
        lazy = false,
 | 
			
		||||
        priority = 1000,
 | 
			
		||||
        config = function()
 | 
			
		||||
            vim.cmd("colorscheme onedark")
 | 
			
		||||
        end
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "lukas-reineke/indent-blankline.nvim",
 | 
			
		||||
        lazy = false,
 | 
			
		||||
        main = "ibl",
 | 
			
		||||
        opts = {},
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("ibl").setup({})
 | 
			
		||||
        end
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    { "utilyre/barbecue.nvim",
 | 
			
		||||
        lazy = false,
 | 
			
		||||
        name = "barbecue",
 | 
			
		||||
        version = "*",
 | 
			
		||||
        dependencies = {
 | 
			
		||||
            "SmiteshP/nvim-navic",
 | 
			
		||||
            "nvim-tree/nvim-web-devicons",
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- lsp
 | 
			
		||||
 | 
			
		||||
    { "github/copilot.vim" },
 | 
			
		||||
 | 
			
		||||
    {"williamboman/mason.nvim",
 | 
			
		||||
        lazy = false,
 | 
			
		||||
        config = function()
 | 
			
		||||
            require("mason").setup({})
 | 
			
		||||
        end
 | 
			
		||||
    },
 | 
			
		||||
    {"williamboman/mason-lspconfig.nvim"},
 | 
			
		||||
 | 
			
		||||
    {"VonHeikemen/lsp-zero.nvim", branch = "v3.x"},
 | 
			
		||||
    {"neovim/nvim-lspconfig"},
 | 
			
		||||
    {"hrsh7th/cmp-nvim-lsp"},
 | 
			
		||||
    {"hrsh7th/nvim-cmp"},
 | 
			
		||||
    {"L3MON4D3/LuaSnip"},
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user