123456789101112131415161718192021222324252627282930 |
- return {
- 'VonHeikemen/lsp-zero.nvim',
- branch = 'v1.x',
- dependencies = {
- -- LSP Support
- { 'neovim/nvim-lspconfig' }, -- Required
- { 'williamboman/mason.nvim' }, -- Optional
- { 'williamboman/mason-lspconfig.nvim' }, -- Optional
- -- Autocompletion
- { 'hrsh7th/nvim-cmp' }, -- Required
- { 'hrsh7th/cmp-nvim-lsp' }, -- Required
- { 'hrsh7th/cmp-buffer' }, -- Optional
- { 'hrsh7th/cmp-path' }, -- Optional
- { 'saadparwaiz1/cmp_luasnip' }, -- Optional w
- { 'hrsh7th/cmp-nvim-lua' }, -- Optional
- -- Snippets
- { 'L3MON4D3/LuaSnip' }, -- Required
- { 'rafamadriz/friendly-snippets' }, -- Optional
- },
- config = function()
- local config = require("lsp-zero")
- config.preset("recommended")
- config.nvim_workspace()
- config.setup()
- -- set keymap
- end
- }
|