Skip to content

Commit 8a4a5d2

Browse files
rmacklinbenwis
authored andcommitted
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 68af43d commit 8a4a5d2

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
@@ -491,7 +491,17 @@ require('lazy').setup({
491491

492492
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
493493
-- used for completion, annotations and signatures of Neovim apis
494-
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
494+
{
495+
'folke/lazydev.nvim',
496+
ft = 'lua',
497+
opts = {
498+
library = {
499+
-- Load luvit types when the `vim.uv` word is found
500+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
501+
},
502+
},
503+
},
504+
{ 'Bilal2453/luvit-meta', lazy = true },
495505
},
496506
config = function()
497507
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)