Skip to content

Commit

Permalink
Update lazydev config to fix "Undefined field fs_stat" LSP error (n…
Browse files Browse the repository at this point in the history
…vim-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.
  • Loading branch information
rmacklin authored and andreiblt1304 committed Jul 25, 2024
1 parent aad2148 commit 97b988c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,17 @@ require('lazy').setup({

-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
-- used for completion, annotations and signatures of Neovim apis
{ 'folke/lazydev.nvim', ft = 'lua', opts = {} },
{
'folke/lazydev.nvim',
ft = 'lua',
opts = {
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
},
},
},
{ 'Bilal2453/luvit-meta', lazy = true },
},
config = function()
-- Brief aside: **What is LSP?**
Expand Down

0 comments on commit 97b988c

Please sign in to comment.