lsp-zero.lua 941 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. 'VonHeikemen/lsp-zero.nvim',
  3. branch = 'v1.x',
  4. dependencies = {
  5. -- LSP Support
  6. { 'neovim/nvim-lspconfig' }, -- Required
  7. { 'williamboman/mason.nvim' }, -- Optional
  8. { 'williamboman/mason-lspconfig.nvim' }, -- Optional
  9. -- Autocompletion
  10. { 'hrsh7th/nvim-cmp' }, -- Required
  11. { 'hrsh7th/cmp-nvim-lsp' }, -- Required
  12. { 'hrsh7th/cmp-buffer' }, -- Optional
  13. { 'hrsh7th/cmp-path' }, -- Optional
  14. { 'saadparwaiz1/cmp_luasnip' }, -- Optional w
  15. { 'hrsh7th/cmp-nvim-lua' }, -- Optional
  16. -- Snippets
  17. { 'L3MON4D3/LuaSnip' }, -- Required
  18. { 'rafamadriz/friendly-snippets' }, -- Optional
  19. },
  20. config = function()
  21. local config = require("lsp-zero")
  22. config.preset("recommended")
  23. config.nvim_workspace()
  24. config.setup()
  25. -- set keymap
  26. end
  27. }