Clash between my utils module and utils in luvit-meta library #83
-
|
Hi, I have an ---A collection of custom helper functions.
---@class MyUtils
---@field autocmd MyUtilsAutoCmds
---@field plugins MyUtilsPlugins
local MyUtils = {}
-- etc.
return MyUtilsMy problem is that inside -- .local/share/nvim/lazy/luvit-meta/library/utils.lua
---@meta
---@class utils: luvit.prettyPrint
local utils = {}So, that module collides with my personal config utils. Currently I'm forcing the type through Is there a way to properly handle this case? Thanks! Screenshot: This is my lazydev config: {
"folke/lazydev.nvim",
dependencies = {
"neovim/nvim-lspconfig",
"Bilal2453/luvit-meta",
"LuaCATS/luassert",
"LuaCATS/busted",
},
ft = "lua",
opts = {
library = {
{ path = "luvit-meta/library", words = { "vim%.uv" } },
{ path = "luassert/library", words = { "assert" } },
{ path = "busted/library", words = { "describe" } },
},
},
}, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
For libuv (and others), use this instead: { path = "${3rd}/luv/library", words = { "vim%.uv" } },
{ path = "${3rd}/luassert/library", words = { "assert" } },
{ path = "${3rd}/busted/library", words = { "describe" } },
And remove those dependencies. no longer needed. |
Beta Was this translation helpful? Give feedback.
-
|
kindly tag @polirritmico <https://github.com/polirritmico>: would you mind explaining why you use Bilal2453/luvit-meta?
@nyngwang, check this: https://neovim.io/doc/user/luvref.html
Edit: response through mail mess up the format
|
Beta Was this translation helpful? Give feedback.

For libuv (and others), use this instead:
{ path = "${3rd}/luv/library", words = { "vim%.uv" } }, { path = "${3rd}/luassert/library", words = { "assert" } }, { path = "${3rd}/busted/library", words = { "describe" } },And remove those dependencies. no longer needed.