Skip to content

Commit 26fb7a7

Browse files
restrayTimothée Belhomme
authored and
Timothée Belhomme
committed
Update lazydev config to fix "Undefined field fs_stat" LSP error (nvim-lua#1040)
7513ec8 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 https://github.com/folke/lazydev.nvim/tree/6184ebbbc8045d70077659b7d30c705a588dc62f#-installation which resolves the LSP error.
1 parent 1a7c817 commit 26fb7a7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

init.lua

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,17 @@ require('lazy').setup({
413413

414414
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
415415
-- used for completion, annotations and signatures of Neovim apis
416-
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
416+
{
417+
'folke/lazydev.nvim',
418+
ft = 'lua',
419+
opts = {
420+
library = {
421+
-- Load luvit types when the `vim.uv` word is found
422+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
423+
},
424+
},
425+
},
426+
{ 'Bilal2453/luvit-meta', lazy = true },
417427
},
418428
config = function()
419429
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)