Skip to content

Commit 6eb8599

Browse files
rmacklinflatplate
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 d25612f commit 6eb8599

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

990990
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
991991
-- used for completion, annotations and signatures of Neovim apis
992-
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
992+
{
993+
'folke/lazydev.nvim',
994+
ft = 'lua',
995+
opts = {
996+
library = {
997+
-- Load luvit types when the `vim.uv` word is found
998+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
999+
},
1000+
},
1001+
},
1002+
{ 'Bilal2453/luvit-meta', lazy = true },
9931003
},
9941004
config = function()
9951005
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)