]> src.twobees.de Git - dotfiles.git/blob - stow/nvim/.config/nvim/lua/plugin_mgr.lua
319fda1a2315379e87003c52b6a617b633522a3e
[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 { 'neovim/nvim-lspconfig' }
20     use { 'onsails/lspkind.nvim' }
21     use { "williamboman/mason.nvim" } -- lsp installer
22     use
23     {
24         'nvim-treesitter/nvim-treesitter',
25         run = ':TSUpdate'
26     }
27
28     -- complition stuff
29     use { 'hrsh7th/cmp-nvim-lsp' }
30     use { 'hrsh7th/cmp-buffer' }
31     use { 'hrsh7th/cmp-path' }
32     use { 'hrsh7th/cmp-cmdline' }
33     use { 'hrsh7th/nvim-cmp' }
34
35     -- Automatically set up configuration after cloning packer.nvim
36     if packer_bootstrap then
37         require('packer').sync()
38     end
39 end)