]> src.twobees.de Git - dotfiles.git/blobdiff - 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
index 319fda1a2315379e87003c52b6a617b633522a3e..be148ee328d1b84267b3625c1caf04473320478f 100644 (file)
@@ -16,21 +16,32 @@ return require('packer').startup(function(use)
     use { 'catppuccin/nvim', as = 'catppuccin' }
     use { 'folke/tokyonight.nvim' }
     use { 'unblevable/quick-scope'}
-    use { 'neovim/nvim-lspconfig' }
     use { 'onsails/lspkind.nvim' }
-    use { "williamboman/mason.nvim" } -- lsp installer
     use
     {
         'nvim-treesitter/nvim-treesitter',
         run = ':TSUpdate'
     }
+    use {
+        'VonHeikemen/lsp-zero.nvim',
+        requires = {
+            -- LSP Support
+            {'neovim/nvim-lspconfig'},
+            {'williamboman/mason.nvim'},
+            {'williamboman/mason-lspconfig.nvim'},
+
+            -- Autocompletion
+            {'hrsh7th/nvim-cmp'},
+            {'hrsh7th/cmp-buffer'},
+            {'hrsh7th/cmp-path'},
+            {'saadparwaiz1/cmp_luasnip'},
+            {'hrsh7th/cmp-nvim-lsp'},
+            {'hrsh7th/cmp-nvim-lua'},
+        }
+    }
 
     -- complition stuff
-    use { 'hrsh7th/cmp-nvim-lsp' }
-    use { 'hrsh7th/cmp-buffer' }
-    use { 'hrsh7th/cmp-path' }
     use { 'hrsh7th/cmp-cmdline' }
-    use { 'hrsh7th/nvim-cmp' }
 
     -- Automatically set up configuration after cloning packer.nvim
     if packer_bootstrap then