Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lazydev configuration to fix "Undefined field fs_stat" LSP error #1040

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

rmacklin
Copy link
Contributor

#936 was just merged, and it had cherry-picked the changes from #961. Thus, it included the issue mentioned in #961 (comment): it introduced an LSP error in init.lua:

image

which IMO degrades the desired "first timer" experience of kickstart.nvim.

This PR follows the configuration suggested in https://github.com/folke/lazydev.nvim/tree/6184ebbbc8045d70077659b7d30c705a588dc62f#-installation which resolves the LSP error.

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.
@feoh
Copy link
Collaborator

feoh commented Jul 22, 2024

Great work. Thanks for your contribution.

@feoh feoh merged commit 6207327 into nvim-lua:master Jul 22, 2024
1 check passed
@rmacklin rmacklin deleted the fix-lazydev-config branch July 22, 2024 02:10
@rmacklin
Copy link
Contributor Author

Thank you for the speedy review and merge!

marcoluzi pushed a commit to marcoluzi/kickstart.nvim that referenced this pull request Jul 22, 2024
…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.
cbat98 added a commit to cbat98/kickstart.nvim that referenced this pull request Jul 22, 2024
commit 6f3fe35
Author: srdtrk <59252793+srdtrk@users.noreply.github.com>
Date:   Mon Jul 22 04:21:21 2024 +0200

    lint: fix lsp warning in `vim.lsp.inlay_hint.is_enabled` (nvim-lua#947)

    * fix: lsp warning

    * review suggestion

    Co-authored-by: Tom Kuson <mail@tjkuson.me>

    ---------

    Co-authored-by: Tom Kuson <mail@tjkuson.me>

commit 6207327
Author: Richard Macklin <1863540+rmacklin@users.noreply.github.com>
Date:   Sun Jul 21 19:08:09 2024 -0700

    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.

commit 7513ec8
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Mon Jul 22 02:35:07 2024 +0200

    Neovim 0.10 updates (nvim-lua#936)

    * Neovim 0.10 updates

    Provide the buffer for which to enable inlay hints

    Co-authored-by: Matt Mirus <matt@mattmirus.com>

    * refactor: replace vim.loop with vim.uv

    * Upgrade folke/neodev (sunsetting) to folke/lazydev

    * Update checkhealth for 0.10 release

    ---------

    Co-authored-by: Matt Mirus <matt@mattmirus.com>
    Co-authored-by: mrr11k <me+github@mrr11k.dev>
    Co-authored-by: Seb Tomasini <sebt@qgates.com>

commit 07a9f44
Author: Richard Macklin <1863540+rmacklin@users.noreply.github.com>
Date:   Sun Jul 21 13:34:51 2024 -0700

    Fix comment about mini.ai example (nvim-lua#985)

    This example wasn't using `'` so this makes more sense

commit b36d84d
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Sun Jul 21 22:34:17 2024 +0200

    Make conform.nvim be lazy-loadable again (nvim-lua#977)

    The PR that disabled lazy loading (nvim-lua#818) was to fix plugin not being
    loaded before write. This sets up lazy to load conform before write.

commit c405d3f
Author: Artyom <84637383+MZhuvka@users.noreply.github.com>
Date:   Sun Jul 21 23:33:26 2024 +0300

    Update README.md | %userprofile%\appdata\local -> %localappdata% (nvim-lua#963)

    - Replace `%userprofile%\AppData\Local\nvim\` and `$env:USERPROFILE\AppData\Local\nvim` to `%localappdata%\nvim` and `$env:LOCALAPPDATA\nvim respectfully`

commit 4bbca64
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Sun Jul 21 22:24:57 2024 +0200

    Make debug lazy loadable (nvim-lua#978)

commit 1cdf6fb
Author: Tom Kuson <mail@tjkuson.me>
Date:   Sun Jul 21 22:22:44 2024 +0200

    Remove redundant require (nvim-lua#959)

commit 202910d
Author: Damjan 9000 <damjan.9000@gmail.com>
Date:   Sun Jul 21 22:22:10 2024 +0200

    Fix neo-tree keymap description (nvim-lua#932)

    The lazy.nvim keys parameter does not need the `desc` to
    be inside a table in the way that vim.keymap.set() does.
    With this fix the keymap description will be properly
    shown for example in telescope keymap search

commit 2df5137
Author: TJ DeVries <devries.timothyj@gmail.com>
Date:   Wed Jul 17 21:37:31 2024 -0400

    fix: add required parsers from nvim-treesitter

commit 3e55ff1
Author: Folke Lemaitre <folke.lemaitre@gmail.com>
Date:   Tue Jul 16 18:06:47 2024 +0200

    fix(lazy): added error handling for bootstrap (nvim-lua#1001)

commit f5c9195
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Tue Jul 16 18:05:40 2024 +0200

    which-key v3 update (nvim-lua#1022)

    * which-key v3 update

    * remove unneeded brackets from which-key registration
Merge remote-tracking branch 'upstream/master'
cdf144 added a commit to cdf144/kickstart.nvim that referenced this pull request Jul 23, 2024
commit 56b9114
Author: Richard Macklin <1863540+rmacklin@users.noreply.github.com>
Date:   Mon Jul 22 10:00:35 2024 -0700

    Update comment about the toggle inlay hints keymap (nvim-lua#1041)

commit 6f3fe35
Author: srdtrk <59252793+srdtrk@users.noreply.github.com>
Date:   Mon Jul 22 04:21:21 2024 +0200

    lint: fix lsp warning in `vim.lsp.inlay_hint.is_enabled` (nvim-lua#947)

    * fix: lsp warning

    * review suggestion

    Co-authored-by: Tom Kuson <mail@tjkuson.me>

    ---------

    Co-authored-by: Tom Kuson <mail@tjkuson.me>

commit 6207327
Author: Richard Macklin <1863540+rmacklin@users.noreply.github.com>
Date:   Sun Jul 21 19:08:09 2024 -0700

    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.

commit 7513ec8
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Mon Jul 22 02:35:07 2024 +0200

    Neovim 0.10 updates (nvim-lua#936)

    * Neovim 0.10 updates

    Provide the buffer for which to enable inlay hints

    Co-authored-by: Matt Mirus <matt@mattmirus.com>

    * refactor: replace vim.loop with vim.uv

    * Upgrade folke/neodev (sunsetting) to folke/lazydev

    * Update checkhealth for 0.10 release

    ---------

    Co-authored-by: Matt Mirus <matt@mattmirus.com>
    Co-authored-by: mrr11k <me+github@mrr11k.dev>
    Co-authored-by: Seb Tomasini <sebt@qgates.com>

commit 07a9f44
Author: Richard Macklin <1863540+rmacklin@users.noreply.github.com>
Date:   Sun Jul 21 13:34:51 2024 -0700

    Fix comment about mini.ai example (nvim-lua#985)

    This example wasn't using `'` so this makes more sense

commit b36d84d
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Sun Jul 21 22:34:17 2024 +0200

    Make conform.nvim be lazy-loadable again (nvim-lua#977)

    The PR that disabled lazy loading (nvim-lua#818) was to fix plugin not being
    loaded before write. This sets up lazy to load conform before write.

commit c405d3f
Author: Artyom <84637383+MZhuvka@users.noreply.github.com>
Date:   Sun Jul 21 23:33:26 2024 +0300

    Update README.md | %userprofile%\appdata\local -> %localappdata% (nvim-lua#963)

    - Replace `%userprofile%\AppData\Local\nvim\` and `$env:USERPROFILE\AppData\Local\nvim` to `%localappdata%\nvim` and `$env:LOCALAPPDATA\nvim respectfully`

commit 4bbca64
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Sun Jul 21 22:24:57 2024 +0200

    Make debug lazy loadable (nvim-lua#978)

commit 1cdf6fb
Author: Tom Kuson <mail@tjkuson.me>
Date:   Sun Jul 21 22:22:44 2024 +0200

    Remove redundant require (nvim-lua#959)

commit 202910d
Author: Damjan 9000 <damjan.9000@gmail.com>
Date:   Sun Jul 21 22:22:10 2024 +0200

    Fix neo-tree keymap description (nvim-lua#932)

    The lazy.nvim keys parameter does not need the `desc` to
    be inside a table in the way that vim.keymap.set() does.
    With this fix the keymap description will be properly
    shown for example in telescope keymap search

commit 2df5137
Author: TJ DeVries <devries.timothyj@gmail.com>
Date:   Wed Jul 17 21:37:31 2024 -0400

    fix: add required parsers from nvim-treesitter

commit 3e55ff1
Author: Folke Lemaitre <folke.lemaitre@gmail.com>
Date:   Tue Jul 16 18:06:47 2024 +0200

    fix(lazy): added error handling for bootstrap (nvim-lua#1001)

commit f5c9195
Author: Vladislav Grechannik <52157081+VlaDexa@users.noreply.github.com>
Date:   Tue Jul 16 18:05:40 2024 +0200

    which-key v3 update (nvim-lua#1022)

    * which-key v3 update

    * remove unneeded brackets from which-key registration
codemedic added a commit to codemedic/kickstart.nvim that referenced this pull request Jul 24, 2024
* master:
  Update comment about the toggle inlay hints keymap (nvim-lua#1041)
  lint: fix lsp warning in `vim.lsp.inlay_hint.is_enabled` (nvim-lua#947)
  Update lazydev config to fix "Undefined field `fs_stat`" LSP error (nvim-lua#1040)
  Neovim 0.10 updates (nvim-lua#936)
  Fix comment about mini.ai example (nvim-lua#985)
  Make conform.nvim be lazy-loadable again (nvim-lua#977)
  Update README.md | %userprofile%\appdata\local -> %localappdata% (nvim-lua#963)
  Make debug lazy loadable (nvim-lua#978)
  Remove redundant require (nvim-lua#959)
  Fix neo-tree keymap description (nvim-lua#932)
andreiblt1304 pushed a commit to andreiblt1304/kickstart.nvim that referenced this pull request Jul 25, 2024
…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.
Alessandro201 pushed a commit to Alessandro201/kickstart.nvim that referenced this pull request Jul 25, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants