]> src.twobees.de Git - dotfiles.git/blob - stow/nvim/.config/nvim/lua/plugin_mgr.lua
switch to lsp-zero, it seems quite convenient..
[dotfiles.git] / stow / nvim / .config / nvim / lua / plugin_mgr.lua
1 local ensure_packer = function()
2     local fn = vim.fn
3     local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
4     if fn.empty(fn.glob(install_path)) > 0 then
5         fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
6         vim.cmd [[packadd packer.nvim]]
7         return true
8     end
9     return false
10 end
11
12 local packer_bootstrap = ensure_packer()
13
14 return require('packer').startup(function(use)
15     use { 'wbthomason/packer.nvim' }
16     use { 'catppuccin/nvim', as = 'catppuccin' }
17     use { 'folke/tokyonight.nvim' }
18     use { 'unblevable/quick-scope'}
19     use { 'onsails/lspkind.nvim' }
20     use
21     {
22         'nvim-treesitter/nvim-treesitter',
23         run = ':TSUpdate'
24     }
25     use {
26         'VonHeikemen/lsp-zero.nvim',
27         requires = {
28             -- LSP Support
29             {'neovim/nvim-lspconfig'},
30             {'williamboman/mason.nvim'},
31             {'williamboman/mason-lspconfig.nvim'},
32
33             -- Autocompletion
34             {'hrsh7th/nvim-cmp'},
35             {'hrsh7th/cmp-buffer'},
36             {'hrsh7th/cmp-path'},
37             {'saadparwaiz1/cmp_luasnip'},
38             {'hrsh7th/cmp-nvim-lsp'},
39             {'hrsh7th/cmp-nvim-lua'},
40         }
41     }
42
43     -- complition stuff
44     use { 'hrsh7th/cmp-cmdline' }
45
46     -- Automatically set up configuration after cloning packer.nvim
47     if packer_bootstrap then
48         require('packer').sync()
49     end
50 end)