2021-05-19 00:53:42 +02:00
|
|
|
-- Author : swytch
|
|
|
|
-- Created : Friday Mar 12, 2021 22:28:34 CET
|
|
|
|
-- License : GPLv3
|
|
|
|
-- Description : neovim plugins file
|
|
|
|
|
|
|
|
|
|
|
|
local execute = vim.api.nvim_command
|
|
|
|
local fn = vim.fn
|
|
|
|
|
|
|
|
local install_path = fn.stdpath("data").."/site/pack/packer/start/packer.nvim"
|
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
|
|
fn.system({"git", "clone", "https://github.com/wbthomason/packer.nvim", install_path})
|
|
|
|
execute "packadd packer.nvim"
|
|
|
|
end
|
|
|
|
|
|
|
|
return require("packer").startup(function()
|
|
|
|
-- packer manages itself
|
|
|
|
use "wbthomason/packer.nvim"
|
|
|
|
|
|
|
|
-- colorscheme
|
|
|
|
use {
|
2021-10-22 22:40:18 +02:00
|
|
|
"~/.local/src/astronomy.nvim",
|
2021-10-22 00:00:49 +02:00
|
|
|
config = function() require("colorscheme") end
|
2021-05-19 00:53:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
-- tree-sitter
|
2021-07-12 16:16:24 +02:00
|
|
|
use {
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
2021-10-17 14:58:15 +02:00
|
|
|
run = ":TSUpdate",
|
|
|
|
config = function() require("plugin.treesitter") end
|
2021-07-12 16:16:24 +02:00
|
|
|
}
|
2021-05-19 00:53:42 +02:00
|
|
|
|
|
|
|
-- fuzzy finder
|
|
|
|
use {
|
|
|
|
"nvim-telescope/telescope.nvim",
|
2021-07-23 00:54:28 +02:00
|
|
|
opt = true,
|
|
|
|
requires = {
|
|
|
|
{
|
|
|
|
"nvim-lua/popup.nvim",
|
|
|
|
opt = true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
opt = true
|
|
|
|
}
|
|
|
|
},
|
2021-07-22 23:00:55 +02:00
|
|
|
cmd = "Telescope"
|
2021-05-19 00:53:42 +02:00
|
|
|
}
|
|
|
|
|
2021-05-19 00:53:42 +02:00
|
|
|
-- LSP
|
2021-10-17 12:44:44 +02:00
|
|
|
use {
|
|
|
|
"williamboman/nvim-lsp-installer",
|
|
|
|
cmd = {
|
|
|
|
"LspInstall",
|
|
|
|
"LspInstallInfo"
|
|
|
|
},
|
|
|
|
config = function() require("plugin.lsp_installer").setup() end
|
|
|
|
}
|
|
|
|
|
2021-07-22 23:03:21 +02:00
|
|
|
use {
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
ft = { "c", "cpp", "lua", "python", "tex"},
|
|
|
|
config = function() require("lsp").setup() end
|
|
|
|
}
|
2021-05-19 00:53:42 +02:00
|
|
|
|
2021-05-19 00:53:42 +02:00
|
|
|
-- auto completion
|
2021-09-12 02:30:11 +02:00
|
|
|
use {
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
requires = {
|
2021-11-20 15:35:07 +01:00
|
|
|
{
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
config = function() require("plugin.luasnip") end
|
|
|
|
},
|
|
|
|
"saadparwaiz1/cmp_luasnip",
|
2021-09-12 02:30:11 +02:00
|
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
|
|
"hrsh7th/cmp-nvim-lua",
|
|
|
|
"hrsh7th/cmp-buffer",
|
|
|
|
"hrsh7th/cmp-path",
|
|
|
|
"hrsh7th/cmp-calc",
|
|
|
|
"ray-x/cmp-treesitter",
|
2021-11-20 15:35:07 +01:00
|
|
|
"f3fora/cmp-spell",
|
2021-10-17 14:58:15 +02:00
|
|
|
},
|
|
|
|
config = function() require("plugin.cmp") end
|
2021-09-12 02:30:11 +02:00
|
|
|
}
|
2021-05-19 00:53:42 +02:00
|
|
|
|
2021-10-12 19:10:20 +02:00
|
|
|
-- commenting, simplified
|
2021-10-17 14:58:15 +02:00
|
|
|
use {
|
|
|
|
"numToStr/Comment.nvim",
|
|
|
|
config = function() require("plugin.comment") end
|
|
|
|
}
|
2021-10-12 19:10:20 +02:00
|
|
|
|
2021-10-30 15:29:14 +02:00
|
|
|
-- autopairs
|
|
|
|
use {
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
config = function() require('nvim-autopairs').setup() end
|
|
|
|
}
|
|
|
|
|
2021-05-19 00:53:42 +02:00
|
|
|
-- display colors directly in editor
|
|
|
|
use {
|
|
|
|
"norcalli/nvim-colorizer.lua",
|
2021-07-22 23:00:55 +02:00
|
|
|
cmd = "ColorizerToggle"
|
2021-05-19 00:53:42 +02:00
|
|
|
}
|
|
|
|
|
2021-09-12 02:30:11 +02:00
|
|
|
-- ens
|
2021-10-19 19:03:15 +02:00
|
|
|
use {
|
|
|
|
"whonore/Coqtail",
|
|
|
|
ft = { "verilog" },
|
|
|
|
config = vim.cmd[[let g:coqtail_nomap = 1]]
|
|
|
|
}
|
2021-05-19 00:53:42 +02:00
|
|
|
end)
|