2021-11-05 17:44:11 +01:00
|
|
|
vim.cmd [[packadd packer.nvim]]
|
2021-04-20 14:34:02 +02:00
|
|
|
|
2021-04-24 19:41:58 +02:00
|
|
|
local function pconf(plugin)
|
2021-11-05 17:44:11 +01:00
|
|
|
return 'require("pluginconf.' .. plugin .. '")'
|
2021-04-24 19:41:58 +02:00
|
|
|
end
|
|
|
|
|
2022-01-22 16:38:51 +01:00
|
|
|
local function cmp_plugins(use)
|
|
|
|
use {
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
config = pconf "lspconf",
|
|
|
|
}
|
|
|
|
use "hrsh7th/cmp-nvim-lsp"
|
|
|
|
use "hrsh7th/cmp-buffer"
|
|
|
|
use "hrsh7th/cmp-path"
|
|
|
|
use "hrsh7th/cmp-cmdline"
|
2023-01-10 16:06:44 +01:00
|
|
|
use {
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
config = pconf "nvim_cmp",
|
|
|
|
}
|
2022-01-22 16:38:51 +01:00
|
|
|
|
|
|
|
use "saadparwaiz1/cmp_luasnip"
|
|
|
|
use {
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
config = pconf "nvim_luasnip",
|
|
|
|
requires = {
|
|
|
|
"rafamadriz/friendly-snippets",
|
2022-04-13 11:58:35 +02:00
|
|
|
-- temporarily removed due to syntax error in recent commit
|
|
|
|
--"honza/vim-snippets",
|
2022-01-22 16:38:51 +01:00
|
|
|
},
|
|
|
|
}
|
2021-04-20 14:34:02 +02:00
|
|
|
|
2022-01-22 16:54:56 +01:00
|
|
|
use {
|
|
|
|
"Saecki/crates.nvim",
|
2022-01-22 16:57:53 +01:00
|
|
|
config = function()
|
|
|
|
require("crates").setup {}
|
|
|
|
end,
|
2022-01-22 16:54:56 +01:00
|
|
|
}
|
2022-01-22 16:57:53 +01:00
|
|
|
|
2022-01-23 01:25:35 +01:00
|
|
|
use "ray-x/cmp-treesitter"
|
2022-02-26 17:22:45 +01:00
|
|
|
|
|
|
|
use {
|
|
|
|
"jose-elias-alvarez/null-ls.nvim",
|
|
|
|
config = pconf "nullls",
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
"LhKipp/nvim-nu",
|
|
|
|
config = function()
|
|
|
|
require("nu").setup {
|
|
|
|
complete_cmd_names = true,
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
}
|
2022-01-22 16:38:51 +01:00
|
|
|
end
|
|
|
|
|
2022-11-19 01:53:49 +01:00
|
|
|
require("packer").startup(function(use)
|
2022-01-22 16:38:51 +01:00
|
|
|
use "wbthomason/packer.nvim"
|
|
|
|
|
2021-11-05 17:44:11 +01:00
|
|
|
use {
|
|
|
|
"dracula/vim",
|
|
|
|
as = "dracula",
|
|
|
|
}
|
2022-05-06 14:36:32 +02:00
|
|
|
use {
|
|
|
|
"lewis6991/gitsigns.nvim",
|
|
|
|
config = function()
|
|
|
|
require("gitsigns").setup {}
|
|
|
|
end,
|
|
|
|
}
|
2021-11-05 17:44:11 +01:00
|
|
|
use "dag/vim-fish"
|
|
|
|
use "uiiaoo/java-syntax.vim"
|
|
|
|
use {
|
2022-01-29 20:50:10 +01:00
|
|
|
"nvim-lualine/lualine.nvim",
|
|
|
|
requires = "arkav/lualine-lsp-progress",
|
|
|
|
config = pconf "line",
|
2021-11-05 17:44:11 +01:00
|
|
|
}
|
|
|
|
use {
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
2022-02-08 18:15:31 +01:00
|
|
|
run = ":TSUpdateSync",
|
2021-11-05 17:44:11 +01:00
|
|
|
config = pconf "treesitter",
|
|
|
|
}
|
2021-06-26 23:30:51 +02:00
|
|
|
|
2021-11-05 17:44:11 +01:00
|
|
|
use "kyazdani42/nvim-web-devicons"
|
2021-09-26 23:11:50 +02:00
|
|
|
|
2021-11-05 17:44:11 +01:00
|
|
|
use {
|
|
|
|
"kyazdani42/nvim-tree.lua",
|
|
|
|
requires = "kyazdani42/nvim-web-devicons",
|
|
|
|
config = pconf "nvimtree",
|
|
|
|
}
|
2021-09-26 23:11:50 +02:00
|
|
|
|
2021-11-05 17:44:11 +01:00
|
|
|
use {
|
|
|
|
"TimUntersberger/neogit",
|
|
|
|
requires = "nvim-lua/plenary.nvim",
|
2022-11-13 21:10:33 +01:00
|
|
|
config = pconf "nvim_neogit",
|
2021-11-05 17:44:11 +01:00
|
|
|
}
|
2021-09-26 23:11:50 +02:00
|
|
|
|
2021-11-05 17:44:11 +01:00
|
|
|
use "ron-rs/ron.vim"
|
2021-09-11 18:13:25 +02:00
|
|
|
|
2021-11-05 17:44:11 +01:00
|
|
|
use {
|
|
|
|
"nvim-telescope/telescope.nvim",
|
2022-07-06 23:04:52 +02:00
|
|
|
requires = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
},
|
2021-11-05 17:44:11 +01:00
|
|
|
config = pconf "telescope",
|
|
|
|
}
|
|
|
|
use "gluon-lang/vim-gluon"
|
|
|
|
use {
|
2022-01-22 16:38:51 +01:00
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
config = pconf "autopairs",
|
2021-11-05 17:44:11 +01:00
|
|
|
}
|
2022-01-22 16:38:51 +01:00
|
|
|
|
|
|
|
use "windwp/nvim-ts-autotag"
|
2021-12-14 14:45:41 +01:00
|
|
|
use {
|
2023-01-21 14:42:29 +01:00
|
|
|
"HiPhish/nvim-ts-rainbow2",
|
2021-12-14 14:45:41 +01:00
|
|
|
requires = "nvim-treesitter/nvim-treesitter",
|
2023-01-21 14:42:29 +01:00
|
|
|
config = pconf "tsrainbow2",
|
2021-12-14 14:45:41 +01:00
|
|
|
}
|
2022-01-22 16:38:51 +01:00
|
|
|
|
2022-05-15 16:42:11 +02:00
|
|
|
use {
|
2022-08-15 14:29:41 +02:00
|
|
|
"akinsho/toggleterm.nvim",
|
|
|
|
config = pconf "tterm",
|
2022-05-15 16:42:11 +02:00
|
|
|
}
|
|
|
|
|
2022-08-15 14:41:01 +02:00
|
|
|
use {
|
|
|
|
"NTBBloodbath/zig-tools.nvim",
|
|
|
|
config = pconf "zigtools",
|
|
|
|
}
|
|
|
|
|
2022-09-07 16:42:01 +02:00
|
|
|
use "DingDean/wgsl.vim"
|
|
|
|
|
2023-01-24 19:09:09 +01:00
|
|
|
use "rcarriga/nvim-notify"
|
2022-10-04 20:22:24 +02:00
|
|
|
|
|
|
|
use {
|
|
|
|
"stevearc/dressing.nvim",
|
|
|
|
config = function()
|
|
|
|
require("dressing").setup {}
|
2022-10-18 23:03:39 +02:00
|
|
|
end,
|
2022-10-04 20:22:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
"nvim-treesitter/nvim-treesitter-context",
|
2022-10-18 23:03:39 +02:00
|
|
|
config = pconf "ts-context",
|
2022-10-04 20:22:24 +02:00
|
|
|
}
|
2022-10-16 14:38:14 +02:00
|
|
|
|
|
|
|
use "DaeZak/crafttweaker-vim-highlighting"
|
|
|
|
|
2022-10-18 23:03:39 +02:00
|
|
|
use "mfussenegger/nvim-jdtls"
|
|
|
|
|
2022-10-24 22:52:58 +02:00
|
|
|
use {
|
|
|
|
"kevinhwang91/nvim-ufo",
|
|
|
|
requires = "kevinhwang91/promise-async",
|
|
|
|
after = "nvim-lspconfig",
|
|
|
|
config = pconf "nvim_ufo",
|
|
|
|
}
|
|
|
|
|
2022-11-09 14:44:06 +01:00
|
|
|
use {
|
|
|
|
"stevearc/aerial.nvim",
|
2022-11-13 21:10:33 +01:00
|
|
|
config = pconf "nvim_aerial",
|
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
|
|
|
"mfussenegger/nvim-dap",
|
|
|
|
config = pconf "nvim_dap",
|
|
|
|
requires = "rcarriga/nvim-dap-ui",
|
2022-11-09 14:44:06 +01:00
|
|
|
}
|
|
|
|
|
2022-12-23 00:08:07 +01:00
|
|
|
use {
|
|
|
|
"ThePrimeagen/harpoon",
|
|
|
|
config = pconf "nvim_harpoon",
|
|
|
|
}
|
|
|
|
|
2023-01-10 16:06:44 +01:00
|
|
|
use {
|
|
|
|
"chrisgrieser/nvim-recorder",
|
|
|
|
config = pconf "nvim_recorder",
|
|
|
|
}
|
|
|
|
|
2023-01-17 15:07:16 +01:00
|
|
|
use {
|
2023-01-24 19:09:09 +01:00
|
|
|
"folke/noice.nvim",
|
|
|
|
config = pconf "nvim_noice",
|
|
|
|
requires = "MunifTanjim/nui.nvim",
|
2023-01-17 15:07:16 +01:00
|
|
|
}
|
|
|
|
|
2022-01-22 16:38:51 +01:00
|
|
|
cmp_plugins(use)
|
2021-04-20 14:34:02 +02:00
|
|
|
end)
|
2022-11-19 01:53:49 +01:00
|
|
|
|
2023-01-03 22:57:55 +01:00
|
|
|
-- actually compile packer-generated config after packer's "compile" step
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
|
|
pattern = "PackerCompileDone",
|
|
|
|
once = true,
|
|
|
|
callback = function()
|
|
|
|
require("mzte_nv").compile.compilePath(require("packer").config.compile_path)
|
|
|
|
end,
|
|
|
|
})
|