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

Expose help action #311

Merged
merged 2 commits into from
Jul 25, 2023
Merged

Expose help action #311

merged 2 commits into from
Jul 25, 2023

Conversation

MariaSolOs
Copy link
Contributor

Okay I promise this is the last PR I create today lol.

I noticed earlier that there's a Trouble.help() implementation but no action for it. I find it quite useful and so this PR adds a keymapping to open the help window.

offset_y = -2,
offset_x = 2,
})
vim.lsp.util.open_floating_preview(lines, "markdown", { border = "single" })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the other window settings here because the preview window doesn't have them and I was using that as a reference, and it seems like the floating preview will automatically figure out the dimensions.

@folke folke merged commit 467dc20 into folke:main Jul 25, 2023
3 checks passed
@folke
Copy link
Owner

folke commented Jul 25, 2023

thanks!

@MariaSolOs MariaSolOs deleted the help branch July 25, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants