Skip to content

Commit

Permalink
feat!: Use lazydev instead of neodev
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Jun 20, 2024
1 parent 720fc65 commit 85a7a08
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 27 additions & 0 deletions lua/core/plugins/lazydev.lua
Original file line number Diff line number Diff line change
@@ -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,
},
}
1 change: 0 additions & 1 deletion lua/core/plugins/neodev.lua

This file was deleted.

0 comments on commit 85a7a08

Please sign in to comment.