Upgrade folke/neodev (sunsetting) to folke/lazydev

This commit is contained in:
Seb Tomasini 2024-06-02 02:56:44 +01:00 committed by Vladislav
parent c0adb35d7b
commit 57e359c377
No known key found for this signature in database
GPG Key ID: 07A1CCBD643CA257
1 changed files with 7 additions and 2 deletions

View File

@ -411,9 +411,9 @@ require('lazy').setup({
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} },
-- `neodev` configures Lua LSP for your Neovim config, runtime and plugins
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
-- used for completion, annotations and signatures of Neovim apis
{ 'folke/neodev.nvim', opts = {} },
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
},
config = function()
-- Brief aside: **What is LSP?**
@ -753,6 +753,11 @@ require('lazy').setup({
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
},
sources = {
{
name = 'lazydev',
-- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
group_index = 0,
},
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },