summaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
authorRichard Macklin <1863540+rmacklin@users.noreply.github.com>2024-07-21 19:08:09 -0700
committerGitHub <noreply@github.com>2024-07-21 22:08:09 -0400
commitea0d8ea6e26c27710db5369e26665d8144b2d20b (patch)
tree20a0f4385ab1c43f382f996e901c4cd71886f125 /nvim
parent892e70aa76f2696c91f389727ce1942275106824 (diff)
downloaddots-ea0d8ea6e26c27710db5369e26665d8144b2d20b.tar.gz
Update lazydev config to fix "Undefined field `fs_stat`" LSP error (#1040)
59c826b1877b70c2d43c7d96fb2cc838a51e40e2 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.
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index a1c900f..7718130 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -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?**