aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-08-27 20:52:08 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-08-27 20:52:08 -0600
commit718896032196b51684926039746f9288750e9585 (patch)
treeddef7bcd0d34bd0eb4d0d50d021cc5f9a5906be9 /test/functional
parent7a9b5937966d3db852c84b8eb232e77d92d3c355 (diff)
downloadrneovim-718896032196b51684926039746f9288750e9585.tar.gz
rneovim-718896032196b51684926039746f9288750e9585.tar.bz2
rneovim-718896032196b51684926039746f9288750e9585.zip
feat(colorcolchar): add the option "colorcol" to the fillchars setting
This option will let neovim draw a character in the colorcolumn when there is no other character occupying that spot. For example, I'm someone who likes the elegance of seeing a 1px wide line at the 80 character mark, rather than a rectangle the width of a cell at that mark. To accomplish this, I run :set colorcol=80 :set fillchars=colorcol:│ of course ':' and '.' are good ASCII alteratives.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/highlight_spec.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 4e3d62509c..b0b2920ae9 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -856,13 +856,14 @@ describe('CursorLine and CursorLineNr highlights', function()
|
]])
+ command('set fillchars=colorcol:|')
command('set colorcolumn=3')
feed('i <esc>')
screen:expect([[
- {1:{} {7: } |
+ {1:{} {7:|} |
"{2:a}{7:"} : {3:abc} {3:// 10;} |
- {1:}} {7: } |
- {5: ^ }{7: }{5: }|
+ {1:}} {7:|} |
+ {5: ^ }{7:|}{5: }|
|
]])
end)