diff --git a/README.md b/README.md index c9a7f435..f0cde865 100644 --- a/README.md +++ b/README.md @@ -403,7 +403,7 @@ separator if `separator` is set. By default it links to `FloatBorder`. Use the highlight groups `TreesitterContextBottom` and/or `TreesitterContextLineNumberBottom` to change the highlight of the last line of -the context window. By default it links to `NONE`. +the context window. By default it is cleared. However, you can use this to create a border by applying an underline highlight, e.g, for an underline across the screen: diff --git a/doc/nvim-treesitter-context.txt b/doc/nvim-treesitter-context.txt index e0b584df..b3e38c99 100644 --- a/doc/nvim-treesitter-context.txt +++ b/doc/nvim-treesitter-context.txt @@ -86,7 +86,7 @@ HIGHLIGHTS *nvim-treesitter-context-highlights* Used for the colors of the separator if `separator` is set. `TreesitterContextBottom` *hl-TreesitterContextBottom* - (default: links to `NONE`) + (default: cleared) Use for the last line of the context. diff --git a/plugin/treesitter-context.lua b/plugin/treesitter-context.lua index 8cd4b2e1..131f8852 100644 --- a/plugin/treesitter-context.lua +++ b/plugin/treesitter-context.lua @@ -12,7 +12,7 @@ end, { vim.api.nvim_set_hl(0, 'TreesitterContext', { link = 'NormalFloat', default = true }) vim.api.nvim_set_hl(0, 'TreesitterContextLineNumber', { link = 'LineNr', default = true }) -vim.api.nvim_set_hl(0, 'TreesitterContextBottom', { link = 'NONE', default = true }) +vim.api.nvim_set_hl(0, 'TreesitterContextBottom', { default = true }) vim.api.nvim_set_hl( 0, 'TreesitterContextLineNumberBottom',