aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/plugins.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-09-19 11:51:50 +0200
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-09-19 11:51:50 +0200
commit09a3262cb94b0abd1064fbb7c4a13d04a36e4049 (patch)
tree9d62c9e8741f4c25ab7a5405fb377f2822dd0d6f /lua/alpha/plugins.lua
parent5f5b3fc9c5ec56fd221c170cf68ff9a11cdee85a (diff)
downloadnvim-conf-09a3262cb94b0abd1064fbb7c4a13d04a36e4049.tar.gz
nvim-conf-09a3262cb94b0abd1064fbb7c4a13d04a36e4049.zip
Some improvements
Diffstat (limited to 'lua/alpha/plugins.lua')
-rw-r--r--lua/alpha/plugins.lua445
1 files changed, 222 insertions, 223 deletions
diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua
index bd964bb..9e6d774 100644
--- a/lua/alpha/plugins.lua
+++ b/lua/alpha/plugins.lua
@@ -2,227 +2,226 @@ 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("~/plugins/" .. plug_path)) == 1 then
- opts[1] = "~/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({
- "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",
- },
- })
-
- 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",
- "L3MON4D3/LuaSnip",
- "windwp/nvim-autopairs",
- },
- })
-
- -- LSP
- use({
- "neovim/nvim-lspconfig",
- "hrsh7th/cmp-nvim-lsp-signature-help",
- "jose-elias-alvarez/null-ls.nvim",
- })
-
- -- Installation of LSP/Debuggers/Other
- use({
- "williamboman/mason.nvim",
- "williamboman/mason-lspconfig.nvim",
- "WhoIsSethDaniel/mason-tool-installer.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({
- "norcalli/nvim-colorizer.lua",
- config = function()
- require("colorizer").setup({})
- end,
- })
-
- use("feline-nvim/feline.nvim")
-
- use({
- "mfussenegger/nvim-dap",
- requires = {
- "theHamsta/nvim-dap-virtual-text",
- "rcarriga/nvim-dap-ui",
- "leoluz/nvim-dap-go",
- },
- })
-
- use({
- "folke/trouble.nvim",
- requires = "kyazdani42/nvim-web-devicons",
- })
-
- 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",
- },
- })
-
- use({
- "j-hui/fidget.nvim",
- config = function()
- require("fidget").setup()
- end,
- })
-
- use("rcarriga/nvim-notify")
-
- use("EdenEast/nightfox.nvim")
-
- use("Raimondi/delimitMate")
- use("tpope/vim-surround")
- use("tpope/vim-dotenv")
- use("tpope/vim-fugitive")
- use("tpope/vim-repeat")
- -- use("tpope/vim-obsession")
-
- -- useful for unix functions
- use("tpope/vim-eunuch")
- use("tpope/vim-commentary")
- use("tpope/vim-tbone")
- use("tpope/vim-dispatch")
- use("junegunn/vim-easy-align")
-
- use("jwalton512/vim-blade")
-
- use({
- "lewis6991/gitsigns.nvim",
- requires = {
- "nvim-lua/plenary.nvim",
- },
- })
-
- use({
- "kristijanhusak/vim-dadbod-ui",
- requires = {
- "tpope/vim-dadbod",
- "kristijanhusak/vim-dadbod-completion",
- "tpope/vim-dotenv",
- },
- })
-
- use({
- "NTBBloodbath/rest.nvim",
- requires = { "nvim-lua/plenary.nvim" },
- })
-
- use({ "vimwiki/vimwiki", opt = true, cmd = { "VimwikiIndex" } })
-
- -- use({ "hkupty/iron.nvim" })
-
- -- Local plugins can be included
- local_use("telescope-projectionist.nvim")
- -- local_use("telescope-laravel.nvim")
- local_use("php-code-actions.nvim")
- local_use("laravel.nvim")
-
- use("habamax/vim-godot")
-
- use({
- "anuvyklack/hydra.nvim",
- requires = "anuvyklack/keymap-layer.nvim", -- needed only for pink hydras
- })
-
-
- use({"xiyaowong/nvim-transparent"})
+ 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("~/plugins/" .. plug_path)) == 1 then
+ opts[1] = "~/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({
+ "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",
+ },
+ })
+
+ 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",
+ "L3MON4D3/LuaSnip",
+ "windwp/nvim-autopairs",
+ },
+ })
+
+ -- LSP
+ use({
+ "neovim/nvim-lspconfig",
+ "hrsh7th/cmp-nvim-lsp-signature-help",
+ "jose-elias-alvarez/null-ls.nvim",
+ })
+
+ -- Installation of LSP/Debuggers/Other
+ use({
+ "williamboman/mason.nvim",
+ "williamboman/mason-lspconfig.nvim",
+ "WhoIsSethDaniel/mason-tool-installer.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({
+ "norcalli/nvim-colorizer.lua",
+ config = function()
+ require("colorizer").setup({})
+ end,
+ })
+
+ use("feline-nvim/feline.nvim")
+
+ use({
+ "mfussenegger/nvim-dap",
+ requires = {
+ "theHamsta/nvim-dap-virtual-text",
+ "rcarriga/nvim-dap-ui",
+ "leoluz/nvim-dap-go",
+ },
+ })
+
+ use({
+ "folke/trouble.nvim",
+ requires = "kyazdani42/nvim-web-devicons",
+ })
+
+ 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",
+ },
+ })
+
+ use({
+ "j-hui/fidget.nvim",
+ config = function()
+ require("fidget").setup()
+ end,
+ })
+
+ use("rcarriga/nvim-notify")
+
+ use("EdenEast/nightfox.nvim")
+
+ use("Raimondi/delimitMate")
+ use("tpope/vim-surround")
+ use("tpope/vim-dotenv")
+ use("tpope/vim-fugitive")
+ use("tpope/vim-repeat")
+ -- use("tpope/vim-obsession")
+
+ -- useful for unix functions
+ use("tpope/vim-eunuch")
+ use("tpope/vim-commentary")
+ use("tpope/vim-tbone")
+ use("tpope/vim-dispatch")
+ use("junegunn/vim-easy-align")
+
+ use("jwalton512/vim-blade")
+
+ use({
+ "lewis6991/gitsigns.nvim",
+ requires = {
+ "nvim-lua/plenary.nvim",
+ },
+ })
+
+ use({
+ "kristijanhusak/vim-dadbod-ui",
+ requires = {
+ "tpope/vim-dadbod",
+ "kristijanhusak/vim-dadbod-completion",
+ "tpope/vim-dotenv",
+ },
+ })
+
+ use({
+ "NTBBloodbath/rest.nvim",
+ requires = { "nvim-lua/plenary.nvim" },
+ })
+
+ use({ "vimwiki/vimwiki", opt = true, cmd = { "VimwikiIndex" } })
+
+ -- use({ "hkupty/iron.nvim" })
+
+ -- Local plugins can be included
+ local_use("telescope-projectionist.nvim")
+ -- local_use("telescope-laravel.nvim")
+ local_use("php-code-actions.nvim")
+ local_use("laravel.nvim")
+
+ use("habamax/vim-godot")
+
+ use({
+ "anuvyklack/hydra.nvim",
+ requires = "anuvyklack/keymap-layer.nvim", -- needed only for pink hydras
+ })
+
+ use({ "xiyaowong/nvim-transparent" })
end)