Simple way to draw leading spaces on my code #13859
-
Hello guys, how you doing? I'm trying to show leading spaces on my code without need to use a whole plugin to do it. I can draw leading spaces using some built-in function that I don't know in neovim? I was trying to use This is my attempt: let leading_space_char="·"
call matchadd('Conceal', '\%(^\s*\)\@<= ', 0, -1, { 'conceal': leading_space_char }) Another question: can I use (I'm using the latest version of neovim master branch) |
Beta Was this translation helpful? Give feedback.
Answered by
xbc5
Jun 16, 2023
Replies: 2 comments 1 reply
-
you might need to enable concealing, e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
justinmk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set list
will show all invisible chars, including CR and spaces.