12345678910111213141516171819202122232425262728293031 |
- 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
- }
|