aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-03 00:20:52 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-17 22:18:07 +0100
commitd27a67fa0da6e30775588a488b184b0085b4f722 (patch)
treeb1113f1334b89a871f431ec138dc51aa9e052897
parentdb62852b20e9003fafb1d08f7d4bd21477d85bda (diff)
downloadnvim-conf-d27a67fa0da6e30775588a488b184b0085b4f722.tar.gz
nvim-conf-d27a67fa0da6e30775588a488b184b0085b4f722.zip
test: use lazy instead of packer
-rw-r--r--init.lua5
-rw-r--r--lazy-lock.json80
-rw-r--r--lua/alpha/lazy.lua14
-rw-r--r--lua/alpha/lazy_plugins.lua221
-rw-r--r--lua/alpha/telescope/setup.lua2
5 files changed, 318 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index cf0b435..a8ce930 100644
--- a/init.lua
+++ b/init.lua
@@ -1,8 +1,7 @@
-pcall(require, "impatient")
-
require("alpha.settings")
+require("alpha.lazy")
+
require("alpha.keybindings")
-require("alpha.plugins")
require("alpha.globals")
require("alpha.disable_builtin")
diff --git a/lazy-lock.json b/lazy-lock.json
new file mode 100644
index 0000000..bc246dc
--- /dev/null
+++ b/lazy-lock.json
@@ -0,0 +1,80 @@
+{
+ "Comment.nvim": { "branch": "master", "commit": "7bb563ff2d811a63b207e9de63e3e9c0877cb6d5" },
+ "FixCursorHold.nvim": { "branch": "master", "commit": "70a9516a64668cbfe59f31b66d0a21678c5e9b12" },
+ "LuaSnip": { "branch": "master", "commit": "563827f00bb4fe43269e3be653deabc0005f1302" },
+ "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
+ "cmp-cmdline": { "branch": "main", "commit": "23c51b2a3c00f6abc4e922dbd7c3b9aca6992063" },
+ "cmp-dap": { "branch": "master", "commit": "d16f14a210cd28988b97ca8339d504533b7e09a4" },
+ "cmp-git": { "branch": "main", "commit": "169202582f900b0e189eed5153b291383bfbba47" },
+ "cmp-nvim-lsp": { "branch": "main", "commit": "59224771f91b86d1de12570b4070fe4ad7cd1eeb" },
+ "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "d2768cb1b83de649d57d967085fe73c5e01f8fd7" },
+ "cmp-nvim-lua": { "branch": "main", "commit": "d276254e7198ab7d00f117e88e223b4bd8c02d21" },
+ "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
+ "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
+ "composer.nvim": { "branch": "main", "commit": "e62eaaef7c978d96a2abfeb2ca570650a4f21528" },
+ "delimitMate": { "branch": "master", "commit": "537a1da0fa5eeb88640425c37e545af933c56e1b" },
+ "dressing.nvim": { "branch": "master", "commit": "4436d6f41e2f6b8ada57588acd1a9f8b3d21453c" },
+ "fidget.nvim": { "branch": "main", "commit": "44585a0c0085765195e6961c15529ba6c5a2a13b" },
+ "fzf": { "branch": "master", "commit": "51ef0b7f661e8df853f8c3e93fc9d52ba12c7f27" },
+ "fzf.vim": { "branch": "master", "commit": "0f03107bc94b31a9c7adcee6da8e5de7492e4b0b" },
+ "git-worktree.nvim": { "branch": "master", "commit": "d7f4e2584e81670154f07ca9fa5dd791d9c1b458" },
+ "gitsigns.nvim": { "branch": "main", "commit": "2ab3bdf0a40bab53033048c6be75bda86316b55d" },
+ "harpoon": { "branch": "master", "commit": "21d0d1bfa3000e4384740bfaefa0ebc51c773786" },
+ "hydra.nvim": { "branch": "master", "commit": "7e2aa29f88d534371c6b0263d3abbfac7c2376ce" },
+ "indent-blankline.nvim": { "branch": "master", "commit": "c4c203c3e8a595bc333abaf168fcb10c13ed5fb7" },
+ "keymap-layer.nvim": { "branch": "master", "commit": "e46840f9f377766e856964a49d7f351de3188a38" },
+ "laravel.nvim": { "branch": "main", "commit": "d87c06ecdafc9e1c2b13938f8485b3915fe89d36" },
+ "lazy.nvim": { "branch": "main", "commit": "06db1ec3c6baa9460e42ef8ed4d2cc2613b194cb" },
+ "lspkind-nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" },
+ "lualine.nvim": { "branch": "master", "commit": "32a7382a75a52e8ad05f4cec7eeb8bbfbe80d461" },
+ "mason-lspconfig.nvim": { "branch": "main", "commit": "aa25b4153d2f2636c3b3a8c8360349d2b29e7ae3" },
+ "mason-tool-installer.nvim": { "branch": "main", "commit": "27f61f75a71bb3c2504a17e02b571f79cae43676" },
+ "mason.nvim": { "branch": "main", "commit": "b8c3fceed16d29a166cf73ce55358f13c9f6cfcc" },
+ "mind.nvim": { "branch": "v2.2", "commit": "79e0ca131d5e37dfa65f3f0e725d99742e4ff783" },
+ "neotest": { "branch": "master", "commit": "414b43f99da0a827c3ce897161fc67c3bb6a5d83" },
+ "neotest-go": { "branch": "main", "commit": "981406c12bd3c77eb434211a1b85b964ab5bbdd5" },
+ "neotest-plenary": { "branch": "master", "commit": "d49bfd9470f791e7c29149e75d56b6f925bb391b" },
+ "neotest-rust": { "branch": "main", "commit": "3270504691595a317361dcd04798b5d0ff852e52" },
+ "neotest-vim-test": { "branch": "master", "commit": "07f25ab7ba4e7646b38c84e10002b195a53b0096" },
+ "null-ls.nvim": { "branch": "main", "commit": "d09d7d82cc26d63673cef85cb62895dd68aab6d8" },
+ "nvim-autopairs": { "branch": "master", "commit": "03580d758231956d33c8dd91e2be195106a79fa4" },
+ "nvim-cmp": { "branch": "main", "commit": "c49ad26e894e137e401b1d294948c46327877eaf" },
+ "nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
+ "nvim-dap": { "branch": "master", "commit": "69b7c684cd42e60b48875c580e616a70bccfdbe7" },
+ "nvim-dap-go": { "branch": "main", "commit": "8f10f347b3332d1f783a209813bf9b61f517256f" },
+ "nvim-dap-ui": { "branch": "master", "commit": "54365d2eb4cb9cfab0371306c6a76c913c5a67e3" },
+ "nvim-dap-virtual-text": { "branch": "master", "commit": "2971ce3e89b1711cc26e27f73d3f854b559a77d4" },
+ "nvim-dap-vscode-js": { "branch": "main", "commit": "e7c05495934a658c8aa10afd995dacd796f76091" },
+ "nvim-lspconfig": { "branch": "master", "commit": "6b43ce561d97412cc512b569db6938e44529293e" },
+ "nvim-notify": { "branch": "master", "commit": "b005821516f1f37801a73067afd1cef2dbc4dfe8" },
+ "nvim-projectconfig": { "branch": "master", "commit": "05fd34831e170db269d1b84597615bcdcdde930e" },
+ "nvim-transparent": { "branch": "main", "commit": "6816751e3d595b3209aa475a83b6fbaa3a5ccc98" },
+ "nvim-treesitter": { "branch": "master", "commit": "12e95e160d7d45b76a36bca6303dd8447ab77490" },
+ "nvim-treesitter-refactor": { "branch": "master", "commit": "75f5895cc662d61eb919da8050b7a0124400d589" },
+ "nvim-treesitter-textobjects": { "branch": "master", "commit": "d816761ec1ea4a605689bc5f4111088459cf74d4" },
+ "nvim-web-devicons": { "branch": "master", "commit": "05e1072f63f6c194ac6e867b567e6b437d3d4622" },
+ "php-code-actions.nvim": { "branch": "main", "commit": "a85a695c58f9c5e8033d824ffae366e9797e0b28" },
+ "playground": { "branch": "master", "commit": "8a887bcf66017bd775a0fb19c9d8b7a4d6759c48" },
+ "plenary.nvim": { "branch": "master", "commit": "4b7e52044bbb84242158d977a50c4cbcd85070c7" },
+ "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
+ "refactoring.nvim": { "branch": "master", "commit": "2c72385b627e46bb66f23b8a11da40b4bb127506" },
+ "rest.nvim": { "branch": "main", "commit": "f94c795321b4ee77834db0300cf42f33d6605000" },
+ "telescope-dap.nvim": { "branch": "master", "commit": "313d2ea12ae59a1ca51b62bf01fc941a983d9c9c" },
+ "telescope-file-browser.nvim": { "branch": "master", "commit": "304508fb7bea78e3c0eeddd88c4837501e403ae8" },
+ "telescope-fzf-native.nvim": { "branch": "main", "commit": "fab3e2212e206f4f8b3bbaa656e129443c9b802e" },
+ "telescope-fzy-native.nvim": { "branch": "master", "commit": "282f069504515eec762ab6d6c89903377252bf5b" },
+ "telescope-ui-select.nvim": { "branch": "master", "commit": "62ea5e58c7bbe191297b983a9e7e89420f581369" },
+ "telescope.nvim": { "branch": "master", "commit": "a606bd10c79ec5989c76c49cc6f736e88b63f0da" },
+ "tokyonight.nvim": { "branch": "main", "commit": "42cccfe663f36b91792a350164f0695b44a031d9" },
+ "trouble.nvim": { "branch": "main", "commit": "897542f90050c3230856bc6e45de58b94c700bbf" },
+ "vim-dadbod": { "branch": "master", "commit": "a09e40664e9cd30cd2b3f8866b796598302070f6" },
+ "vim-dadbod-completion": { "branch": "master", "commit": "e71eb6140556c5ced80de6299a1fdfe22bd3c1b1" },
+ "vim-dadbod-ui": { "branch": "master", "commit": "ecf07480687a13fe1bd3899270a6c9c99de51f4b" },
+ "vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" },
+ "vim-eunuch": { "branch": "master", "commit": "291ef1f8c8996ca7715df1032a35a27b12d7b5cf" },
+ "vim-fugitive": { "branch": "master", "commit": "99cdb88bc64063dc4656ae53496f06fb2a394cd4" },
+ "vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" },
+ "vim-rhubarb": { "branch": "master", "commit": "cad60fe382f3f501bbb28e113dfe8c0de6e77c75" },
+ "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
+ "vim-test": { "branch": "master", "commit": "c6e5d249241342fd4592a67113cb539427d57e23" }
+} \ No newline at end of file
diff --git a/lua/alpha/lazy.lua b/lua/alpha/lazy.lua
new file mode 100644
index 0000000..13754d4
--- /dev/null
+++ b/lua/alpha/lazy.lua
@@ -0,0 +1,14 @@
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
+if not vim.loop.fs_stat(lazypath) then
+ vim.fn.system({
+ "git",
+ "clone",
+ "--filter=blob:none",
+ "https://github.com/folke/lazy.nvim.git",
+ "--branch=stable", -- latest stable release
+ lazypath,
+ })
+end
+vim.opt.rtp:prepend(lazypath)
+
+require("lazy").setup("alpha.lazy_plugins")
diff --git a/lua/alpha/lazy_plugins.lua b/lua/alpha/lazy_plugins.lua
new file mode 100644
index 0000000..3f0a6ed
--- /dev/null
+++ b/lua/alpha/lazy_plugins.lua
@@ -0,0 +1,221 @@
+return {
+ {
+ "nvim-telescope/telescope.nvim",
+ dependencies = {
+ { "nvim-lua/plenary.nvim" },
+ { "nvim-lua/popup.nvim" },
+ { "nvim-telescope/telescope-fzy-native.nvim" },
+ { "kyazdani42/nvim-web-devicons" },
+ { "nvim-telescope/telescope-file-browser.nvim" },
+ { "nvim-telescope/telescope-dap.nvim" },
+ { "nvim-telescope/telescope-ui-select.nvim" },
+ { "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
+ }
+ },
+ {
+ "folke/tokyonight.nvim"
+ },
+ {
+ "ThePrimeagen/refactoring.nvim",
+ dependencies = {
+ { "nvim-lua/plenary.nvim" },
+ { "nvim-treesitter/nvim-treesitter" },
+ },
+ },
+
+ {
+ "nvim-treesitter/nvim-treesitter",
+ build = ":TSUpdate",
+ dependencies = {
+ "nvim-treesitter/playground",
+ "nvim-treesitter/nvim-treesitter-refactor",
+ "nvim-treesitter/nvim-treesitter-textobjects",
+ },
+ },
+ { "junegunn/fzf.vim" },
+ {
+ "junegunn/fzf",
+ build = function()
+ vim.fn["fzf#install"]()
+ end,
+ },
+
+ {
+ "ThePrimeagen/harpoon",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "nvim-lua/popup.nvim",
+ },
+ },
+
+ {
+ "windwp/nvim-projectconfig",
+ config = function()
+ require("nvim-projectconfig").setup()
+ end,
+ },
+
+ -- Completion
+ {
+ "hrsh7th/nvim-cmp",
+ dependencies = {
+ "hrsh7th/cmp-buffer",
+ "hrsh7th/cmp-path",
+ "hrsh7th/cmp-nvim-lua",
+ "hrsh7th/cmp-nvim-lsp",
+ "hrsh7th/cmp-cmdline",
+ "hrsh7th/cmp-git",
+ "rcarriga/cmp-dap",
+ "saadparwaiz1/cmp_luasnip",
+ "onsails/lspkind-nvim",
+ { "L3MON4D3/LuaSnip", version = "v1.*" },
+ "windwp/nvim-autopairs",
+ },
+ },
+
+ -- LSP
+ {
+ "neovim/nvim-lspconfig",
+ "hrsh7th/cmp-nvim-lsp-signature-help",
+ "jose-elias-alvarez/null-ls.nvim",
+ },
+
+ -- Installation of LSP/Debuggers/Other
+ {
+ "williamboman/mason.nvim",
+ "williamboman/mason-lspconfig.nvim",
+ "WhoIsSethDaniel/mason-tool-installer.nvim",
+ },
+
+ {
+ "nvim-telescope/telescope.nvim",
+ dependencies = {
+ { "nvim-lua/plenary.nvim" },
+ { "nvim-lua/popup.nvim" },
+ { "nvim-telescope/telescope-fzy-native.nvim" },
+ { "kyazdani42/nvim-web-devicons" },
+ { "nvim-telescope/telescope-file-browser.nvim" },
+ { "nvim-telescope/telescope-dap.nvim" },
+ { "nvim-telescope/telescope-ui-select.nvim" },
+ { "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
+ },
+ },
+
+ {
+ "ThePrimeagen/git-worktree.nvim",
+ config = function()
+ require("git-worktree").setup({})
+ end,
+ },
+
+ {
+ "norcalli/nvim-colorizer.lua",
+ config = function()
+ require("colorizer").setup({})
+ end,
+ },
+
+ {
+ "nvim-lualine/lualine.nvim",
+ dependencies = { "kyazdani42/nvim-web-devicons", opt = true },
+ },
+
+ {
+ "mfussenegger/nvim-dap",
+ dependencies = {
+ "theHamsta/nvim-dap-virtual-text",
+ "rcarriga/nvim-dap-ui",
+ "leoluz/nvim-dap-go",
+ "mxsdev/nvim-dap-vscode-js",
+ },
+ },
+
+ {
+ "folke/trouble.nvim",
+ dependencies = "kyazdani42/nvim-web-devicons",
+ },
+
+ {
+ "vim-test/vim-test"
+ },
+ {
+ "nvim-neotest/neotest",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "nvim-treesitter/nvim-treesitter",
+ "antoinemadec/FixCursorHold.nvim",
+ "nvim-neotest/neotest-go",
+ "rouge8/neotest-rust",
+ "nvim-neotest/neotest-plenary",
+ "nvim-neotest/neotest-vim-test",
+ -- "olimorris/neotest-phpunit",
+ },
+ },
+
+ {
+ "j-hui/fidget.nvim",
+ config = function()
+ require("fidget").setup()
+ end,
+ },
+
+ "stevearc/dressing.nvim",
+ "rcarriga/nvim-notify",
+ "xiyaowong/nvim-transparent",
+
+ "Raimondi/delimitMate",
+ "lukas-reineke/indent-blankline.nvim",
+
+ "tpope/vim-surround",
+ "tpope/vim-repeat",
+ "tpope/vim-fugitive",
+ "tpope/vim-rhubarb",
+ "tpope/vim-dotenv",
+ "tpope/vim-eunuch",
+
+ {
+ "numToStr/Comment.nvim",
+ config = function()
+ require("Comment").setup()
+ end,
+ },
+
+ {
+ "lewis6991/gitsigns.nvim",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ },
+ },
+
+ -- Database client
+ {
+ "kristijanhusak/vim-dadbod-ui",
+ dependencies = {
+ "tpope/vim-dadbod",
+ "kristijanhusak/vim-dadbod-completion",
+ "tpope/vim-dotenv",
+ },
+ },
+
+ -- Rest client
+ {
+ "NTBBloodbath/rest.nvim",
+ dependencies = { "nvim-lua/plenary.nvim" },
+ },
+
+ {
+ "anuvyklack/hydra.nvim",
+ dependencies = "anuvyklack/keymap-layer.nvim", -- needed only for pink hydras
+ },
+
+ {
+ "phaazon/mind.nvim",
+ branch = "v2.2",
+ dependencies = { "nvim-lua/plenary.nvim" },
+ },
+
+ { "adalessa/laravel.nvim", dev = false },
+
+ "adalessa/composer.nvim",
+ "adalessa/php-code-actions.nvim",
+}
diff --git a/lua/alpha/telescope/setup.lua b/lua/alpha/telescope/setup.lua
index cc92175..e569db7 100644
--- a/lua/alpha/telescope/setup.lua
+++ b/lua/alpha/telescope/setup.lua
@@ -169,6 +169,6 @@ _ = require("telescope").load_extension("git_worktree")
-- _ = require("telescope").load_extension "neoclip"
-- _ = require("telescope").load_extension "frecency"
-- _ = require("telescope").load_extension "smart_history"
-_ = require("telescope").load_extension("projectionist")
+-- _ = require("telescope").load_extension("projectionist")
_ = require("telescope").load_extension("laravel")
_ = require("telescope").load_extension("refactoring")