jdhao / nvim-config

A modern Neovim configuration with full battery for Python, Lua, C++, Markdown, LaTeX, and more...
MIT License
3.4k stars 502 forks source link

make tab as tab #268

Closed gorliver closed 6 months ago

gorliver commented 6 months ago

First, thank you for the nvim config. I enjoy it very much! How can I change tab as tab? I'm asking because two space rise errors for regex "\t" and it is not possible for me to change the "\t" to "\s+". Many thanks!

jdhao commented 6 months ago

I do not understand your question. What do you mean "change tab as tab"?

gorliver commented 6 months ago

Sorry for the confusion. Nvim with this config converts a tab to two spaces. In the following file, I input a tab between L01 and /share. It turns out that nvim put two spaces between L01 and /share instead of a tab. image

I would like a real tab between the two strings like this: image

jdhao commented 6 months ago

All tab-related options is placed currently here: https://github.com/jdhao/nvim-config/blob/050eacaee27272fa893ea8c0d7279625a05319aa/viml_conf/options.vim#L43-L46. You can customize based on your need.