Skip to content

How to query the highlight name for a char #717

Answered by ilias777
ofzo asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a catppuccin thing. This has to be set in the lsp-config file.

You have to do this:

In your lsp-config file put this code:

local border = {
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
    { '', 'FloatBorder' },
}

local handlers = {
    ['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = border }),
    ['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = border }),
}

And then in the rust server initialization this:

local lspconfig = require('lspconfig')


lspconfig.rust…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ofzo
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