aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-17 23:53:34 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2023-01-18 09:03:37 +0100
commita04f9cd914055244f29e9ff17aa7a723f5db2405 (patch)
tree703edf280638e30fe77dd46a60a2e5442e8fd33a /lua/alpha
parentec9655746b21d5ffb01caf502cf9047f83fc3753 (diff)
downloadnvim-conf-a04f9cd914055244f29e9ff17aa7a723f5db2405.tar.gz
nvim-conf-a04f9cd914055244f29e9ff17aa7a723f5db2405.zip
feat: migration to lazy
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/database.lua1
-rw-r--r--lua/alpha/lazy.lua2
-rw-r--r--lua/alpha/lazy_plugins.lua222
-rw-r--r--lua/alpha/plugins.lua295
-rw-r--r--lua/alpha/plugins/colorscheme.lua9
-rw-r--r--lua/alpha/plugins/completition.lua19
-rw-r--r--lua/alpha/plugins/dap.lua14
-rw-r--r--lua/alpha/plugins/database.lua11
-rw-r--r--lua/alpha/plugins/dressing.lua161
-rw-r--r--lua/alpha/plugins/gitsigns.lua20
-rw-r--r--lua/alpha/plugins/harpoon.lua10
-rw-r--r--lua/alpha/plugins/init.lua54
-rw-r--r--lua/alpha/plugins/lsp.lua19
-rw-r--r--lua/alpha/plugins/lualine.lua38
-rw-r--r--lua/alpha/plugins/neotest.lua63
-rw-r--r--lua/alpha/plugins/refactoring.lua10
-rw-r--r--lua/alpha/plugins/rest.lua41
-rw-r--r--lua/alpha/plugins/snippets.lua135
-rw-r--r--lua/alpha/plugins/telescope.lua17
-rw-r--r--lua/alpha/plugins/transparent.lua20
-rw-r--r--lua/alpha/plugins/treesitter.lua71
-rw-r--r--lua/alpha/rest.lua35
-rw-r--r--lua/alpha/status_line.lua34
23 files changed, 713 insertions, 588 deletions
diff --git a/lua/alpha/database.lua b/lua/alpha/database.lua
index df1586b..7715875 100644
--- a/lua/alpha/database.lua
+++ b/lua/alpha/database.lua
@@ -1,4 +1,3 @@
-P("loading this")
vim.g.db_ui_use_nerd_fonts = 1
vim.g.db_ui_show_database_icon = 1
vim.g.db_ui_force_echo_notifications = 1
diff --git a/lua/alpha/lazy.lua b/lua/alpha/lazy.lua
index 13754d4..b878978 100644
--- a/lua/alpha/lazy.lua
+++ b/lua/alpha/lazy.lua
@@ -11,4 +11,4 @@ if not vim.loop.fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
-require("lazy").setup("alpha.lazy_plugins")
+require("lazy").setup("alpha.plugins")
diff --git a/lua/alpha/lazy_plugins.lua b/lua/alpha/lazy_plugins.lua
deleted file mode 100644
index 9c6db15..0000000
--- a/lua/alpha/lazy_plugins.lua
+++ /dev/null
@@ -1,222 +0,0 @@
-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", build = "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" },
- },
-
- {
- "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",
- "jwalton512/vim-blade",
-}
diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua
deleted file mode 100644
index ed80c71..0000000
--- a/lua/alpha/plugins.lua
+++ /dev/null
@@ -1,295 +0,0 @@
-if require("alpha.packer_install")() then
- return
-end
-
-vim.cmd.packadd("packer.nvim")
-vim.cmd([[autocmd BufWritePost plugins.lua source <afile> | PackerCompile]])
-
-return require("packer").startup(function(use)
- local local_use = function(first, second, opts)
- opts = opts or {}
-
- local plug_path, home
- if second == nil then
- plug_path = first
- home = "adalessa"
- else
- plug_path = second
- home = first
- end
-
- if vim.fn.isdirectory(vim.fn.expand("~/code/plugins/" .. plug_path)) == 1 then
- opts[1] = "~/code/plugins/" .. plug_path
- else
- opts[1] = string.format("%s/%s", home, plug_path)
- end
-
- use(opts)
- end
-
- use("wbthomason/packer.nvim")
- use("lewis6991/impatient.nvim")
-
- use("jwalton512/vim-blade")
-
- use({
- "ThePrimeagen/refactoring.nvim",
- requires = {
- { "nvim-lua/plenary.nvim" },
- { "nvim-treesitter/nvim-treesitter" },
- },
- })
-
- use({
- "nvim-treesitter/nvim-treesitter",
- run = ":TSUpdate",
- requires = {
- "nvim-treesitter/playground",
- "nvim-treesitter/nvim-treesitter-refactor",
- "nvim-treesitter/nvim-treesitter-textobjects",
- },
- })
-
- -- optional
- use({ "junegunn/fzf.vim" })
- use({
- "junegunn/fzf",
- run = function()
- vim.fn["fzf#install"]()
- end,
- })
-
- use({
- "ThePrimeagen/harpoon",
- requires = {
- "nvim-lua/plenary.nvim",
- "nvim-lua/popup.nvim",
- },
- keys = require('alpha.harpoon').keymaps,
- config = function ()
- require('alpha.harpoon').setup()
- end
- })
-
- use({
- "windwp/nvim-projectconfig",
- config = function()
- require("nvim-projectconfig").setup()
- end,
- })
-
- -- Completion
- use({
- "hrsh7th/nvim-cmp",
- requires = {
- "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",
- "hrsh7th/cmp-nvim-lsp-signature-help",
- { "L3MON4D3/LuaSnip", tag = "v1.*" },
- "windwp/nvim-autopairs",
- },
- })
-
- -- Installation of LSP/Debuggers/Other
- use({
- "williamboman/mason.nvim",
- "williamboman/mason-lspconfig.nvim",
- "neovim/nvim-lspconfig",
- "WhoIsSethDaniel/mason-tool-installer.nvim",
- })
-
- -- Null ls
- use({
- "jose-elias-alvarez/null-ls.nvim",
- })
-
- use({
- "nvim-telescope/telescope.nvim",
- requires = {
- { "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" },
- },
- })
-
- use({
- "ThePrimeagen/git-worktree.nvim",
- config = function()
- require("git-worktree").setup({})
- end,
- })
-
- use({
- "nvim-lualine/lualine.nvim",
- requires = { "kyazdani42/nvim-web-devicons", opt = true },
- })
-
- use({
- "mfussenegger/nvim-dap",
- requires = {
- "theHamsta/nvim-dap-virtual-text",
- "rcarriga/nvim-dap-ui",
- "leoluz/nvim-dap-go",
- "mxsdev/nvim-dap-vscode-js",
- },
- })
-
- use({
- "folke/trouble.nvim",
- requires = "kyazdani42/nvim-web-devicons",
- config = function ()
- require('trouble').setup({mode = "document_diagnostics"})
- vim.keymap.set('n', '<leader>oo', ':TroubleToggle<cr>')
- end,
- cmd = {"Trouble", "TroubleToggle"},
- keys = "<leader>oo",
- })
-
- use("vim-test/vim-test")
- use({
- "nvim-neotest/neotest",
- requires = {
- "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",
- },
- })
-
- use({
- "j-hui/fidget.nvim",
- config = function()
- require("fidget").setup()
- end,
- })
-
- -- Themes
- use("EdenEast/nightfox.nvim")
- use("folke/tokyonight.nvim")
- use("wuelnerdotexe/vim-enfocado")
-
- -- use("voldikss/vim-floaterm")
-
- -- Style
- use("stevearc/dressing.nvim")
- use({
- "rcarriga/nvim-notify",
- config = function ()
- require('notify').setup({background_colour = "#000000"})
- end
- })
- use("xiyaowong/nvim-transparent")
-
- use("Raimondi/delimitMate")
- use("lukas-reineke/indent-blankline.nvim")
-
- use("tpope/vim-surround")
- use("tpope/vim-repeat")
- use("tpope/vim-fugitive")
- use("tpope/vim-rhubarb")
- use("tpope/vim-dotenv")
- use("tpope/vim-eunuch")
-
- use({
- "numToStr/Comment.nvim",
- config = function()
- require("Comment").setup()
- end,
- })
- use("tpope/vim-sleuth")
-
- use("junegunn/vim-easy-align")
-
-
- use("jghauser/mkdir.nvim")
-
- use({
- "lewis6991/gitsigns.nvim",
- requires = {
- "nvim-lua/plenary.nvim",
- },
- })
-
- -- Database client
- use({
- "kristijanhusak/vim-dadbod-ui",
- requires = {
- "tpope/vim-dadbod",
- "kristijanhusak/vim-dadbod-completion",
- "tpope/vim-dotenv",
- },
- cmd = "DBUI",
- keys = "<leader><leader>db",
- config = function ()
- require('alpha.database')
- end
- })
-
- -- Rest client
- use({
- "NTBBloodbath/rest.nvim",
- requires = { "nvim-lua/plenary.nvim" },
- ft = "http",
- config = function()
- require("alpha.rest")
- end,
- })
-
- use({
- "anuvyklack/hydra.nvim",
- requires = "anuvyklack/keymap-layer.nvim", -- needed only for pink hydras
- })
-
- use({
- "phaazon/mind.nvim",
- branch = "v2.2",
- requires = { "nvim-lua/plenary.nvim" },
- cmd = { "MindOpenMain", "MindOpenProject" },
- config = function ()
- local dirs = {}
- if vim.fn.isdirectory("/mnt/nas/alpha/mind/data") == 1 then
- dirs = {
- state_path = "/mnt/nas/alpha/mind/mind.json",
- data_dir = "/mnt/nas/alpha/mind/data",
- }
- end
- require('mind').setup({ persistence = dirs})
- end
- })
-
- use {
- "danymat/neogen",
- config = function()
- require('neogen').setup({ snippet_engine = "luasnip" })
- end,
- cmd = "Neogen",
- requires = "nvim-treesitter/nvim-treesitter",
- }
-
- -- Local plugins can be included
- local_use("telescope-projectionist.nvim")
- local_use("php-code-actions.nvim")
- local_use("laravel.nvim", nil, {
- config = function ()
- require('alpha.laravel')
- end,
- })
- local_use("composer.nvim")
- local_use("neotest-phpunit")
-end)
diff --git a/lua/alpha/plugins/colorscheme.lua b/lua/alpha/plugins/colorscheme.lua
new file mode 100644
index 0000000..8b9bbbd
--- /dev/null
+++ b/lua/alpha/plugins/colorscheme.lua
@@ -0,0 +1,9 @@
+return {
+ "folke/tokyonight.nvim",
+ config = function()
+ require("tokyonight").setup({
+ style = "night"
+ })
+ vim.cmd.colorscheme("tokyonight")
+ end
+}
diff --git a/lua/alpha/plugins/completition.lua b/lua/alpha/plugins/completition.lua
new file mode 100644
index 0000000..0ab9b89
--- /dev/null
+++ b/lua/alpha/plugins/completition.lua
@@ -0,0 +1,19 @@
+return {
+ "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",
+ },
+ config = function ()
+ require("alpha.completition")
+ end
+}
diff --git a/lua/alpha/plugins/dap.lua b/lua/alpha/plugins/dap.lua
new file mode 100644
index 0000000..6f33484
--- /dev/null
+++ b/lua/alpha/plugins/dap.lua
@@ -0,0 +1,14 @@
+return {
+ "mfussenegger/nvim-dap",
+ dependencies = {
+ "theHamsta/nvim-dap-virtual-text",
+ "rcarriga/nvim-dap-ui",
+ "leoluz/nvim-dap-go",
+ "mxsdev/nvim-dap-vscode-js",
+ "anuvyklack/hydra.nvim",
+ },
+ keys = { { "<leader>d" } },
+ config = function()
+ require("alpha.dap")
+ end
+}
diff --git a/lua/alpha/plugins/database.lua b/lua/alpha/plugins/database.lua
new file mode 100644
index 0000000..39e42a5
--- /dev/null
+++ b/lua/alpha/plugins/database.lua
@@ -0,0 +1,11 @@
+return {
+ "kristijanhusak/vim-dadbod-ui",
+ dependencies = {
+ "tpope/vim-dadbod",
+ "kristijanhusak/vim-dadbod-completion",
+ "tpope/vim-dotenv",
+ },
+ config = function ()
+ require("alpha.database")
+ end
+}
diff --git a/lua/alpha/plugins/dressing.lua b/lua/alpha/plugins/dressing.lua
new file mode 100644
index 0000000..7d7e056
--- /dev/null
+++ b/lua/alpha/plugins/dressing.lua
@@ -0,0 +1,161 @@
+return {
+ "stevearc/dressing.nvim",
+ config = function()
+ require("dressing").setup({
+ input = {
+ -- Set to false to disable the vim.ui.input implementation
+ enabled = true,
+
+ -- Default prompt string
+ default_prompt = "Input:",
+
+ -- Can be 'left', 'right', or 'center'
+ prompt_align = "left",
+
+ -- When true, <Esc> will close the modal
+ insert_only = true,
+
+ -- When true, input will start in insert mode.
+ start_in_insert = true,
+
+ -- These are passed to nvim_open_win
+ anchor = "SW",
+ border = "rounded",
+ -- 'editor' and 'win' will default to being centered
+ relative = "cursor",
+
+ -- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
+ prefer_width = 40,
+ width = nil,
+ -- min_width and max_width can be a list of mixed types.
+ -- min_width = {20, 0.2} means "the greater of 20 columns or 20% of total"
+ max_width = { 140, 0.9 },
+ min_width = { 20, 0.2 },
+ win_options = {
+ -- Window transparency (0-100)
+ winblend = 10,
+ -- Disable line wrapping
+ wrap = false,
+ },
+
+ -- Set to `false` to disable
+ mappings = {
+ n = {
+ ["<Esc>"] = "Close",
+ ["<CR>"] = "Confirm",
+ },
+ i = {
+ ["<C-c>"] = "Close",
+ ["<CR>"] = "Confirm",
+ ["<Up>"] = "HistoryPrev",
+ ["<Down>"] = "HistoryNext",
+ },
+ },
+
+ override = function(conf)
+ -- This is the config that will be passed to nvim_open_win.
+ -- Change values here to customize the layout
+ return conf
+ end,
+
+ -- see :help dressing_get_config
+ get_config = nil,
+ },
+ select = {
+ -- Set to false to disable the vim.ui.select implementation
+ enabled = true,
+
+ -- Priority list of preferred vim.select implementations
+ backend = { "telescope", "fzf_lua", "fzf", "builtin", "nui" },
+
+ -- Trim trailing `:` from prompt
+ trim_prompt = true,
+
+ -- Options for telescope selector
+ -- These are passed into the telescope picker directly. Can be used like:
+ -- telescope = require('telescope.themes').get_ivy({...})
+ telescope = nil,
+
+ -- Options for fzf selector
+ fzf = {
+ window = {
+ width = 0.5,
+ height = 0.4,
+ },
+ },
+
+ -- Options for fzf_lua selector
+ fzf_lua = {
+ winopts = {
+ width = 0.5,
+ height = 0.4,
+ },
+ },
+
+ -- Options for nui Menu
+ nui = {
+ position = "50%",
+ size = nil,
+ relative = "editor",
+ border = {
+ style = "rounded",
+ },
+ buf_options = {
+ swapfile = false,
+ filetype = "DressingSelect",
+ },
+ win_options = {
+ winblend = 10,
+ },
+ max_width = 80,
+ max_height = 40,
+ min_width = 40,
+ min_height = 10,
+ },
+
+ -- Options for built-in selector
+ builtin = {
+ -- These are passed to nvim_open_win
+ anchor = "NW",
+ border = "rounded",
+ -- 'editor' and 'win' will default to being centered
+ relative = "editor",
+
+ win_options = {
+ -- Window transparency (0-100)
+ winblend = 10,
+ },
+
+ -- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
+ -- the min_ and max_ options can be a list of mixed types.
+ -- max_width = {140, 0.8} means "the lesser of 140 columns or 80% of total"
+ width = nil,
+ max_width = { 140, 0.8 },
+ min_width = { 40, 0.2 },
+ height = nil,
+ max_height = 0.9,
+ min_height = { 10, 0.2 },
+
+ -- Set to `false` to disable
+ mappings = {
+ ["<Esc>"] = "Close",
+ ["<C-c>"] = "Close",
+ ["<CR>"] = "Confirm",
+ },
+
+ override = function(conf)
+ -- This is the config that will be passed to nvim_open_win.
+ -- Change values here to customize the layout
+ return conf
+ end,
+ },
+
+ -- Used to override format_item. See :help dressing-format
+ format_item_override = {},
+
+ -- see :help dressing_get_config
+ get_config = nil,
+ },
+ })
+ end
+}
diff --git a/lua/alpha/plugins/gitsigns.lua b/lua/alpha/plugins/gitsigns.lua
new file mode 100644
index 0000000..12a1840
--- /dev/null
+++ b/lua/alpha/plugins/gitsigns.lua
@@ -0,0 +1,20 @@
+return {
+ "lewis6991/gitsigns.nvim",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ },
+ config = function()
+ local gitsigns = require("gitsigns")
+ gitsigns.setup({
+ on_attach = function(bufnr)
+ vim.keymap.set('n', '<leader>hs', gitsigns.stage_hunk, { buffer = bufnr })
+ vim.keymap.set('n', '<leader>hu', gitsigns.undo_stage_hunk, { buffer = bufnr })
+ vim.keymap.set('n', '<leader>hr', gitsigns.reset_hunk, { buffer = bufnr })
+ vim.keymap.set('n', '<leader>hp', gitsigns.preview_hunk, { buffer = bufnr })
+ vim.keymap.set('n', '<leader>hj', gitsigns.next_hunk, { buffer = bufnr })
+ vim.keymap.set('n', '<leader>hk', gitsigns.prev_hunk, { buffer = bufnr })
+ end,
+ max_file_length = 10000,
+ })
+ end
+}
diff --git a/lua/alpha/plugins/harpoon.lua b/lua/alpha/plugins/harpoon.lua
new file mode 100644
index 0000000..8a4ecc6
--- /dev/null
+++ b/lua/alpha/plugins/harpoon.lua
@@ -0,0 +1,10 @@
+return {
+ "ThePrimeagen/harpoon",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "nvim-lua/popup.nvim",
+ },
+ config = function ()
+ require("alpha.harpoon").setup()
+ end
+}
diff --git a/lua/alpha/plugins/init.lua b/lua/alpha/plugins/init.lua
new file mode 100644
index 0000000..334cb01
--- /dev/null
+++ b/lua/alpha/plugins/init.lua
@@ -0,0 +1,54 @@
+return {
+ "jwalton512/vim-blade",
+ { "junegunn/fzf.vim" },
+ {
+ "junegunn/fzf",
+ build = function()
+ vim.fn["fzf#install"]()
+ end,
+ },
+ {
+ "windwp/nvim-projectconfig",
+ config = function()
+ require("nvim-projectconfig").setup()
+ end,
+ },
+ {
+ "ThePrimeagen/git-worktree.nvim",
+ config = function()
+ require("git-worktree").setup({})
+ end,
+ },
+ {
+ "folke/trouble.nvim",
+ dependencies = "kyazdani42/nvim-web-devicons",
+ },
+ "vim-test/vim-test",
+ "rcarriga/nvim-notify",
+
+ "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,
+ },
+ {
+ "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/plugins/lsp.lua b/lua/alpha/plugins/lsp.lua
new file mode 100644
index 0000000..ac07faf
--- /dev/null
+++ b/lua/alpha/plugins/lsp.lua
@@ -0,0 +1,19 @@
+return {
+ "neovim/nvim-lspconfig",
+ dependencies = {
+ "hrsh7th/cmp-nvim-lsp-signature-help",
+ "jose-elias-alvarez/null-ls.nvim",
+ "williamboman/mason.nvim",
+ "williamboman/mason-lspconfig.nvim",
+ "WhoIsSethDaniel/mason-tool-installer.nvim",
+ {
+ "j-hui/fidget.nvim",
+ config = function()
+ require("fidget").setup()
+ end,
+ },
+ },
+ config = function ()
+ require("alpha.lsp")
+ end
+}
diff --git a/lua/alpha/plugins/lualine.lua b/lua/alpha/plugins/lualine.lua
new file mode 100644
index 0000000..e2ace98
--- /dev/null
+++ b/lua/alpha/plugins/lualine.lua
@@ -0,0 +1,38 @@
+return {
+ "nvim-lualine/lualine.nvim",
+ dependencies = { "kyazdani42/nvim-web-devicons" },
+ config = function()
+ require("lualine").setup({
+ options = {
+ theme = vim.g.alpha_lualine_color,
+ icons_enabled = true,
+ globalstatus = true,
+ },
+ extensions = { "quickfix", "fugitive" },
+ sections = {
+ lualine_a = { { "mode", upper = true } },
+ lualine_b = { { "branch", icon = "" }, "db_ui#statusline" },
+ lualine_c = { { "filename", file_status = true, path = 1 } },
+ lualine_x = { "diagnostics", "diff" },
+ lualine_y = { "filetype" },
+ lualine_z = { "location" },
+ },
+ winbar = {
+ lualine_a = {},
+ lualine_b = {},
+ lualine_c = { "filename" },
+ lualine_x = {},
+ lualine_y = {},
+ lualine_z = {},
+ },
+ inactive_winbar = {
+ lualine_a = {},
+ lualine_b = {},
+ lualine_c = { "filename" },
+ lualine_x = {},
+ lualine_y = {},
+ lualine_z = {},
+ },
+ })
+ end
+}
diff --git a/lua/alpha/plugins/neotest.lua b/lua/alpha/plugins/neotest.lua
new file mode 100644
index 0000000..2cecb60
--- /dev/null
+++ b/lua/alpha/plugins/neotest.lua
@@ -0,0 +1,63 @@
+return {
+ "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",
+ "anuvyklack/hydra.nvim",
+ },
+ config = function()
+ local neotest = require("neotest")
+ neotest.setup({
+ adapters = {
+ require("neotest-go"),
+ require("neotest-rust"),
+ require("neotest-plenary"),
+ require("neotest-vim-test")({
+ ignore_file_types = { "go", "lua", "rust", "php" },
+ }),
+ -- require("laravel.neotest"),
+ },
+ })
+
+ local hydra = require("hydra")
+
+ local hint = [[
+ NeoTest
+ _n_: Near test _f_: Current file _l_: Last Test _m_: Run Marked _s_: Toggle Summary ^
+ ^ ^