From 85a7a084bb368997414e67f4159b9bd296767a0a Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 20 Jun 2024 19:36:17 +0200 Subject: [PATCH] feat!: Use lazydev instead of neodev --- lua/core/plugins/lazydev.lua | 27 +++++++++++++++++++++++++++ lua/core/plugins/neodev.lua | 1 - 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 lua/core/plugins/lazydev.lua delete mode 100644 lua/core/plugins/neodev.lua diff --git a/lua/core/plugins/lazydev.lua b/lua/core/plugins/lazydev.lua new file mode 100644 index 00000000..a7bc9e8f --- /dev/null +++ b/lua/core/plugins/lazydev.lua @@ -0,0 +1,27 @@ +return { + { + "folke/lazydev.nvim", + ft = "lua", -- only load on lua files + opts = { + library = { + -- Library items can be absolute paths + -- "~/projects/my-awesome-lib", + -- Or relative, which means they will be resolved as a plugin + -- "LazyVim", + -- When relative, you can also provide a path to the library in the plugin dir + "luvit-meta/library", -- see below + }, + }, + }, + { "Bilal2453/luvit-meta", lazy = true }, -- optional `vim.uv` typings + { -- optional completion source for require statements and module annotations + "hrsh7th/nvim-cmp", + opts = function(_, opts) + opts.sources = opts.sources or {} + table.insert(opts.sources, { + name = "lazydev", + group_index = 0, -- set group index to 0 to skip loading LuaLS completions + }) + end, + }, +} diff --git a/lua/core/plugins/neodev.lua b/lua/core/plugins/neodev.lua deleted file mode 100644 index 3059dd8a..00000000 --- a/lua/core/plugins/neodev.lua +++ /dev/null @@ -1 +0,0 @@ -return { "folke/neodev.nvim", config = true, ft = "lua" }