Update lazydev config to fix "Undefined field fs_stat" LSP error (#1040)

7513ec8a7d switched from neodev to
lazydev, but in the process it introduced an LSP error in `init.lua`,
which degrades the desired "first timer" experience of kickstart.nvim.

This commit follows the configuration suggested in
6184ebbbc8 (-installation)
which resolves the LSP error.
This commit is contained in:
Richard Macklin 2024-07-21 19:08:09 -07:00 committed by GitHub
parent 7513ec8a7d
commit 620732789b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -413,7 +413,17 @@ require('lazy').setup({
-- `lazydev` 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 -- used for completion, annotations and signatures of Neovim apis
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} }, {
'folke/lazydev.nvim',
ft = 'lua',
opts = {
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
},
},
},
{ 'Bilal2453/luvit-meta', lazy = true },
}, },
config = function() config = function()
-- Brief aside: **What is LSP?** -- Brief aside: **What is LSP?**