Replies: 2 comments 7 replies
-
Nice! I'm not planning to fully document the API, but feel free to use it. Especially that part should be fairly stable. Here is another useful one for Telescope (for the keys prop): keys = {
{
"<leader>fp",
function()
require("telescope.builtin").find_files({
cwd = require("lazy.core.config").options.root,
})
end,
desc = "Find Plugin File",
},
}, |
Beta Was this translation helpful? Give feedback.
7 replies
-
There's also |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a convinience function to quckly switch to the directory of one of my plugins which can be useful to look at the code or add print statements for debugging. I did this by accessing
require('lazy.core.config').plugins
and was just wondering if this is maybe considered internal and might change often and if there is a plan to expose some other lua api to access eg the plugins currently configured.Also thought I'd share the function if someone finds it useful:
Beta Was this translation helpful? Give feedback.
All reactions