Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: type gf on require file #3122

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

SingularisArt
Copy link
Member

now, when you're hovering over a require('a.b.c'), you can type gf, and go to the 'c.lua' file

@abzcoding abzcoding changed the base branch from master to rolling October 2, 2022 23:23
@SingularisArt SingularisArt added the enhancement New feature or request label Oct 2, 2022
@ChristianChiarulli ChristianChiarulli merged commit 3008c75 into LunarVim:rolling Oct 3, 2022
Comment on lines +37 to +38
ext = ext or "lua"
local sep = dir_separator()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SingularisArt, please fix the lint violations here, these two variables are not used

end

-- Global function that searches the path for the required file
function find_required_path(module)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SingularisArt, please avoid using global functions with generic names like this, consider move this function under lvim/utils or at very least add a prefix to the function.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants