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

Option to support virtual text wrapping of symbol details #82

Open
balpert89 opened this issue Jul 19, 2024 · 1 comment
Open

Option to support virtual text wrapping of symbol details #82

balpert89 opened this issue Jul 19, 2024 · 1 comment
Labels
enhancement New feature or request up for grabs Good first issue & available for contributions

Comments

@balpert89
Copy link

I am currently configuring outline for my setup.

With opts = { outline_window = { wrap = true }, outline_items = { show_symbol_details = true } } the wrapping only takes the func name into consideration, not the signature:

image

How can I achieve wrapping to also consider the signature?

This is my current configuration, using lazy.nvim:

return {
    {
        "hedyhli/outline.nvim",
        lazy = true,
        event = { "LspAttach" },
        cmd = { "Outline", "OutlineOpen" },
        opts = {
            outline_window = {
                auto_close = false,
                auto_jump = true,
                show_numbers = false,
                width = 20,
                wrap = true,
            },
            outline_items = {
                show_symbol_lineno = true,
                show_symbol_details = true,
            },
        },
    },
}
@hedyhli
Copy link
Owner

hedyhli commented Aug 13, 2024

Hmm, symbol details are added as virtual text, it's unaffected by set wrap. I imagine there might be a way to workaround this, or maybe there's even an option for nvim_buf_set_extmark to support wrapping. I'll leave this up for grabs as a feature request.

@hedyhli hedyhli added enhancement New feature or request up for grabs Good first issue & available for contributions labels Aug 13, 2024
@hedyhli hedyhli changed the title [Question] how to make the func signature be wrapped as well? Option to support virtual text wrapping of symbol details Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up for grabs Good first issue & available for contributions
Projects
None yet
Development

No branches or pull requests

2 participants