Advertisement
Wurfkreuz

Untitled

May 7th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  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({ 'rose-pine/neovim', as = 'rose-pine' })
  17.  
  18. vim.cmd('colorscheme rose-pine')
  19. use {
  20. 'nvim-telescope/telescope.nvim', tag = '0.1.1',
  21. -- or , branch = '0.1.x',
  22. requires = { {'nvim-lua/plenary.nvim'} }
  23. }
  24. use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
  25. use('nvim-treesitter/playground')
  26. use('ThePrimeagen/harpoon')
  27. use('mbbill/undotree')
  28. use('tpope/vim-fugitive')
  29.  
  30. use {
  31. 'VonHeikemen/lsp-zero.nvim',
  32. branch = 'v2.x',
  33. requires = {
  34. -- LSP Support
  35. {'neovim/nvim-lspconfig'}, -- Required
  36. { -- Optional
  37. 'williamboman/mason.nvim',
  38. run = function()
  39. pcall(vim.cmd, 'MasonUpdate')
  40. end,
  41. },
  42. {'williamboman/mason-lspconfig.nvim'}, -- Optional
  43.  
  44. -- Autocompletion
  45. {'hrsh7th/nvim-cmp'}, -- Required
  46. {'hrsh7th/cmp-nvim-lsp'}, -- Required
  47. {'L3MON4D3/LuaSnip'}, -- Required
  48. }
  49. }
  50. -- Automatically set up your configuration after cloning packer.nvim
  51. -- Put this at the end after all plugins
  52. if packer_bootstrap then
  53. require('packer').sync()
  54. end
  55. end)
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement