Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add hover functionality for dependencies in Gemfile #1279

Merged
merged 10 commits into from
Jan 10, 2024
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/hover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def generate_gem_hover(node)
end

# Remove leading whitespace if a heredoc was used for the summary or description
info = info.gsub(/^ +/, "") if info
info = info&.gsub(/^ +/, "")
bravehager marked this conversation as resolved.
Show resolved Hide resolved

markdown = <<~MARKDOWN
**#{spec.name}** (#{spec.version})
Expand Down