]> src.twobees.de Git - dotfiles.git/blob - stow/nvim/.config/nvim/lua/plugin_mgr.lua
add some wallpapers try rose pine theme
[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({
18         'rose-pine/neovim',
19         as = 'rose-pine',
20         config = function()
21             vim.cmd('colorscheme rose-pine')
22         end
23     })
24     use { 'folke/tokyonight.nvim' }
25     use { 'unblevable/quick-scope'}
26     use { 'onsails/lspkind.nvim' }
27     use
28     {
29         'nvim-treesitter/nvim-treesitter',
30         run = ':TSUpdate'
31     }
32     use {
33         'VonHeikemen/lsp-zero.nvim',
34         requires = {
35             -- LSP Support
36             {'neovim/nvim-lspconfig'},
37             {'williamboman/mason.nvim'},
38             {'williamboman/mason-lspconfig.nvim'},
39
40             -- Autocompletion
41             {'hrsh7th/nvim-cmp'},
42             {'hrsh7th/cmp-buffer'},
43             {'hrsh7th/cmp-path'},
44             {'saadparwaiz1/cmp_luasnip'},
45             {'hrsh7th/cmp-nvim-lsp'},
46             {'hrsh7th/cmp-nvim-lua'},
47
48             -- Snippets
49             {'L3MON4D3/LuaSnip'},
50             {'rafamadriz/friendly-snippets'},
51
52
53             -- git 
54             { 'tpope/vim-fugitive' },
55         }
56     }
57
58     -- complition stuff
59     use { 'hrsh7th/cmp-cmdline' }
60
61     use {
62         'nvim-telescope/telescope.nvim', branch = '0.1.x',
63         requires = { {'nvim-lua/plenary.nvim'} }
64     }
65
66     -- Automatically set up configuration after cloning packer.nvim
67     if packer_bootstrap then
68         require('packer').sync()
69     end
70 end)