Skip to content

Commit 1ab035d

Browse files
rmacklinmarryton007
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 6267811 commit 1ab035d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

init.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,24 @@ require('lazy').setup({
466466
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
467467
{ 'j-hui/fidget.nvim', opts = {} },
468468

469+
<<<<<<< HEAD
469470
-- Allows extra capabilities provided by nvim-cmp
470471
'hrsh7th/cmp-nvim-lsp',
472+
=======
473+
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
474+
-- used for completion, annotations and signatures of Neovim apis
475+
{
476+
'folke/lazydev.nvim',
477+
ft = 'lua',
478+
opts = {
479+
library = {
480+
-- Load luvit types when the `vim.uv` word is found
481+
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
482+
},
483+
},
484+
},
485+
{ 'Bilal2453/luvit-meta', lazy = true },
486+
>>>>>>> 6207327 (Update lazydev config to fix "Undefined field `fs_stat`" LSP error (#1040))
471487
},
472488
config = function()
473489
-- Brief aside: **What is LSP?**

0 commit comments

Comments
 (0)