From 18745d86776424ee09ed1be9fc172cfdaae76393 Mon Sep 17 00:00:00 2001 From: Kamiel de Visser Date: Fri, 26 Apr 2024 17:26:20 +0200 Subject: [PATCH] Update README.md Adds a common customization for treesitter-context support. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index ecb3974..d9dd98b 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,20 @@ colors = { } ``` +#### Add _gutter_ indications for treesitter-context. + +Italicize and dim the background of line numbers that belong to the [treesitter-context](https://github.com/nvim-treesitter/nvim-treesitter-context/) context. + +```lua +overrides = function(colors) + local theme = colors.theme + return { + -- Dim gutter background for treesitter-context line numbers + TreesitterContextLineNumber = { bg = theme.ui.bg_dim, fg = theme.ui.nontext, italic = true } + } +end, +``` + #### Transparent Floating Windows This will make floating windows look nicer with default borders.