dotfiles/mzte-nv/conf/lua/plugins.lua
2023-01-24 19:09:09 +01:00

192 lines
4 KiB
Lua

vim.cmd [[packadd packer.nvim]]
local function pconf(plugin)
return 'require("pluginconf.' .. plugin .. '")'
end
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"
use {
"hrsh7th/nvim-cmp",
config = pconf "nvim_cmp",
}
use "saadparwaiz1/cmp_luasnip"
use {
"L3MON4D3/LuaSnip",
config = pconf "nvim_luasnip",
requires = {
"rafamadriz/friendly-snippets",
-- temporarily removed due to syntax error in recent commit
--"honza/vim-snippets",
},
}
use {
"Saecki/crates.nvim",
config = function()
require("crates").setup {}
end,
}
use "ray-x/cmp-treesitter"
use {
"jose-elias-alvarez/null-ls.nvim",
config = pconf "nullls",
}
use {
"LhKipp/nvim-nu",
config = function()
require("nu").setup {
complete_cmd_names = true,
}
end,
}
end
require("packer").startup(function(use)
use "wbthomason/packer.nvim"
use {
"dracula/vim",
as = "dracula",
}
use {
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup {}
end,
}
use "dag/vim-fish"
use "uiiaoo/java-syntax.vim"
use {
"nvim-lualine/lualine.nvim",
requires = "arkav/lualine-lsp-progress",
config = pconf "line",
}
use {
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdateSync",
config = pconf "treesitter",
}
use "kyazdani42/nvim-web-devicons"
use {
"kyazdani42/nvim-tree.lua",
requires = "kyazdani42/nvim-web-devicons",
config = pconf "nvimtree",
}
use {
"TimUntersberger/neogit",
requires = "nvim-lua/plenary.nvim",
config = pconf "nvim_neogit",
}
use "ron-rs/ron.vim"
use {
"nvim-telescope/telescope.nvim",
requires = {
"nvim-lua/plenary.nvim",
},
config = pconf "telescope",
}
use "gluon-lang/vim-gluon"
use {
"windwp/nvim-autopairs",
config = pconf "autopairs",
}
use "windwp/nvim-ts-autotag"
use {
"HiPhish/nvim-ts-rainbow2",
requires = "nvim-treesitter/nvim-treesitter",
config = pconf "tsrainbow2",
}
use {
"akinsho/toggleterm.nvim",
config = pconf "tterm",
}
use {
"NTBBloodbath/zig-tools.nvim",
config = pconf "zigtools",
}
use "DingDean/wgsl.vim"
use "rcarriga/nvim-notify"
use {
"stevearc/dressing.nvim",
config = function()
require("dressing").setup {}
end,
}
use {
"nvim-treesitter/nvim-treesitter-context",
config = pconf "ts-context",
}
use "DaeZak/crafttweaker-vim-highlighting"
use "mfussenegger/nvim-jdtls"
use {
"kevinhwang91/nvim-ufo",
requires = "kevinhwang91/promise-async",
after = "nvim-lspconfig",
config = pconf "nvim_ufo",
}
use {
"stevearc/aerial.nvim",
config = pconf "nvim_aerial",
}
use {
"mfussenegger/nvim-dap",
config = pconf "nvim_dap",
requires = "rcarriga/nvim-dap-ui",
}
use {
"ThePrimeagen/harpoon",
config = pconf "nvim_harpoon",
}
use {
"chrisgrieser/nvim-recorder",
config = pconf "nvim_recorder",
}
use {
"folke/noice.nvim",
config = pconf "nvim_noice",
requires = "MunifTanjim/nui.nvim",
}
cmp_plugins(use)
end)
-- 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,
})