dotfiles/.config/nvim/lua/plugins.lua

172 lines
3.6 KiB
Lua
Raw Normal View History

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"
2022-01-23 13:49:56 +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
2021-11-05 17:44:11 +01:00
use {
2022-01-22 16:38:51 +01:00
"simrat39/rust-tools.nvim",
config = pconf "rust_tools",
2021-11-05 17:44:11 +01: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
use "lukas-reineke/cmp-rg"
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
return require("packer").startup(function(use)
use "wbthomason/packer.nvim"
2021-11-05 17:44:11 +01:00
use {
"dracula/vim",
as = "dracula",
}
use {
"glacambre/firenvim",
run = function()
vim.fn["firenvim#install"](0)
end,
config = pconf "firenvim",
}
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 "sheerun/vim-polyglot"
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",
}
use {
"euclio/vim-markdown-composer",
run = "cargo build --release",
config = pconf "markdowncomposer",
}
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",
}
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",
"nvim-telescope/telescope-ui-select.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 {
"p00f/nvim-ts-rainbow",
requires = "nvim-treesitter/nvim-treesitter",
}
2022-01-22 16:38:51 +01:00
2022-01-23 13:49:56 +01:00
use {
"folke/trouble.nvim",
config = function()
require("trouble").setup {}
end,
}
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"
2022-10-04 20:22:24 +02:00
use {
"rcarriga/nvim-notify",
config = function()
vim.notify = require "notify"
end
}
use {
"stevearc/dressing.nvim",
config = function()
require("dressing").setup {}
end
}
use {
"nvim-treesitter/nvim-treesitter-context",
config = pconf "ts-context"
2022-10-04 20:22:24 +02:00
}
2022-01-22 16:38:51 +01:00
cmp_plugins(use)
2021-04-20 14:34:02 +02:00
end)