-- bootstrap
local install_path = vim.fn.stdpath('data')..'/site/pack/paqs/start/paq-nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({
'git', 'clone', '--depth=1',
'https://github.com/savq/paq-nvim.git',
install_path
})
end
vim.cmd 'packadd paq-nvim'
require('paq') {
{'savq/paq-nvim'};
-- treesiter
{'nvim-treesitter/playground'};
{'nvim-treesitter/nvim-treesitter-textobjects'};
{
'nvim-treesitter/nvim-treesitter',
run=vim.api.nvim_command(':silent! TSUpdate')
};
-- lsp
{
'neovim/nvim-lspconfig',
run = function()
vim.fn.system({'npm', 'install', '-g', '@ansible/ansible-language-server'})
vim.fn.system({'npm', 'install', '-g', 'vscode-langservers-extracted'})
vim.fn.system({'python3', '-m', 'pipx', 'install', '--force', 'python-lsp-server[all]'})
vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'git+https://github.com/python/mypy'})
vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'pylsp-mypy'})
vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'types-all'})
vim.fn.system({'python3', '-m', 'pipx', 'inject', 'python-lsp-server', 'flake8'})
vim.fn.system({'python3', '-m', 'pipx', 'upgrade', '--include-injected', 'python-lsp-server'})
-- vim.fn.system({'python3', '-m', 'pip', 'install', '--force', 'debugpy'})
end
};
{'mickael-menu/zk-nvim'};
{
'jose-elias-alvarez/null-ls.nvim',
run = function()
vim.fn.system({'npm', 'install', '-g', 'markdownlint'})
vim.fn.system({'python3', '-m', 'pip', 'install', 'gitlint'})
vim.fn.system({'python3', '-m', 'pipx', 'install', 'yamllint'})
vim.fn.system({'luarocks', 'install', 'luacheck'})
end
};
{'nvim-telescope/telescope.nvim'};
{'stevearc/aerial.nvim'};
{'sindrets/diffview.nvim'};
{'folke/which-key.nvim'};
{
'michaelb/sniprun',
run = 'bash install.sh'
};
-- dap
{'mfussenegger/nvim-dap'};
{'rcarriga/nvim-dap-ui'};
-- completion
{'hrsh7th/cmp-nvim-lsp'};
{'hrsh7th/cmp-cmdline'};
{'hrsh7th/cmp-buffer'};
{'hrsh7th/cmp-path'};
{'hrsh7th/cmp-calc'};
{'hrsh7th/nvim-cmp'};
-- indentation
{'lewis6991/gitsigns.nvim'};
{'glepnir/indent-guides.nvim'};
{'darazaki/indent-o-matic'};
{
'stsewd/sphinx.nvim',
run=function()
vim.fn.system({'python3', '-m', 'pip', 'install', 'sphinx'})
vim.api.nvim_command(':silent! UpdateRemotePlugins')
end
};
-- qol
{'kwkarlwang/bufresize.nvim'};
-- dependencies
{'nvim-lua/plenary.nvim'};
}
require('plugins.aerial')
require('plugins.bufresize')
require('plugins.cmp')
require('plugins.dap')
require('plugins.diffview')
require('plugins.gitsigns')
require('plugins.indent-guides')
require('plugins.indent-o-matic')
require('plugins.sniprun')
require('plugins.lspconfig')
require('plugins.null-ls')
require('plugins.telescope')
require('plugins.treesitter')
require('plugins.which-key')
require('plugins.zk')