Skip to content

Commit ce7e7f3

Browse files
rmacklinkenji-yamada
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 530c82b commit ce7e7f3

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

430430
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
431431
-- used for completion, annotations and signatures of Neovim apis
432-
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
432+
{
433+
'folke/lazydev.nvim',
434+
ft = 'lua',
435+
opts = {
436+
library = {
437+
-- Load luvit types when the `vim.uv` word is found
438+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
439+
},
440+
},
441+
},
442+
{ 'Bilal2453/luvit-meta', lazy = true },
433443
},
434444
config = function()
435445
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)