diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-12-12 20:43:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 20:43:14 +0100 |
commit | 54d6a32fbdcbd5b26b72f4dca8906e60f5186d2c (patch) | |
tree | 263df641e5480ed7e0c36c5ce1858355d02183b2 /runtime/doc | |
parent | 3869a2e0cf25323a8e5235840678b147ca908517 (diff) | |
download | rneovim-54d6a32fbdcbd5b26b72f4dca8906e60f5186d2c.tar.gz rneovim-54d6a32fbdcbd5b26b72f4dca8906e60f5186d2c.tar.bz2 rneovim-54d6a32fbdcbd5b26b72f4dca8906e60f5186d2c.zip |
feat(lsp): highlight semantic token modifiers (#21390)
Apply semantic token modifiers as separate extmarks with corresponding
highlight groups (e.g., `@readonly`). This is a low-effort PR to enable
the most common use cases (applying, e.g., italics or backgrounds on top
of type highlights; language-specific fallbacks like `@global.lua` are
also available). This can be replaced by more complicated selector-style
themes later on.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 89a6e89511..75d5c067b1 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1340,7 +1340,7 @@ start({bufnr}, {client_id}, {opts}) *vim.lsp.semantic_tokens.start()* |vim.lsp.buf_attach_client()|. To opt-out of semantic highlighting with a server that supports it, you can delete the semanticTokensProvider table from the {server_capabilities} of your client in your |LspAttach| callback - or your configuration's `on_attach` callback. >lua + or your configuration's `on_attach` callback: >lua client.server_capabilities.semanticTokensProvider = nil < |