Markdown Preview in Neovim popup window (Help)

please can i gets some help or tips on how to conceal links in markdown preview. when i am viewing code documentation when using rust in neovim, there are sometimes too many links me that slows me down when reading this documentation.

for some reason conceallevel=1, 2 or 3 does not work

I think this is the relevant Config: User Manual

Thanks for the reply, i adjusted the config, but seem it is not picking it up

here is my rust-tools options

local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())

local opts = {
    tools = { -- rust-tools options
        autoSetHints = true,
        hover_with_actions = true,
        runnables = {
            use_telescope = true
        },
        debuggables = {
            use_telescope = true
        },
        -- These apply to the default RustSetInlayHints command
        inlay_hints = {
            only_current_line = false,
            only_current_line_autocmd = "CursorHold",
            show_parameter_hints = true,
            parameter_hints_prefix = "<- ",
            other_hints_prefix = "=> ",
            max_len_align = false,
            max_len_align_padding = 1,
            right_align = false,
            right_align_padding = 7,
            highlight = "Comment",
        },

        hover_actions = {
            border = {
                {"╭", "FloatBorder"}, {"─", "FloatBorder"},
                {"╮", "FloatBorder"}, {"│", "FloatBorder"},
                {"╯", "FloatBorder"}, {"─", "FloatBorder"},
                {"╰", "FloatBorder"}, {"│", "FloatBorder"}
            },
            auto_focus = false
        }
    },

    -- all the opts to send to nvim-lspconfig
    -- these override the defaults set by rust-tools.nvim
    -- see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#rust_analyzer
    server = {
        settings = {
            ["rust-analyzer"] = {
                diagnostics = {
                    enable = true, -- just for testing, to  see it options are actually set
                },
                hover = {
                    linksInHover = false,
                }
            }
                
        }
    }, -- rust-analyzer options
}

return opts

-- rust-analyzer.hover.linksInHover (default: true)

and here is me using it

Fixed it, line 73 was overriding the default settings, had to change to to

rust_opts.server.on_attach = on_acttach

this applied the right settings

your solution worked, was having conflict somewhere else that is why it was still not working. here is the new render, looks better

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.