Skip to content

Disable render-markdown in vim.lsp.buf.hover #267

Discussion options

You must be logged in to vote

You can disable the plugin using a buftype override or you can change the background highlight associated with code blocks for hover docs.

To disable:

require('render-markdown').setup({
    overrides = {
        buftype = {
            nofile = { enabled = false },
        },
    },
})

To change code block background highlight:

require('render-markdown').setup({
    overrides = {
        buftype = {
            nofile = { code = { highlight = 'SOME_CLEAR_HIGHLIGHT_GROUP' } },
        },
    },
})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@whoop-t
Comment options

Answer selected by MeanderingProgrammer
Comment options

You must be logged in to vote
2 replies
@MeanderingProgrammer
Comment options

@MeanderingProgrammer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants