Skip to content

Commit 1de8f22

Browse files
rmacklinnitdn
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 dc66ed0 commit 1de8f22

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

418418
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
419419
-- used for completion, annotations and signatures of Neovim apis
420-
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
420+
{
421+
'folke/lazydev.nvim',
422+
ft = 'lua',
423+
opts = {
424+
library = {
425+
-- Load luvit types when the `vim.uv` word is found
426+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
427+
},
428+
},
429+
},
430+
{ 'Bilal2453/luvit-meta', lazy = true },
421431
},
422432
config = function()
423433
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)