Closed ahrime closed 2 months ago
The tab width your tapped is determined by the whole file's tab size, we use https://github.com/tpope/vim-sleuth.
thx, The following configuration has solved my problem。
cat .editorconfig
# http://editorconfig.org
root = true
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
[*.{h, hxx, c, cpp, cc, cxx}]
indent_style = space
indent_size = 4
[{cmakelist.txt, CMakeLists.txt}]
indent_style = tab
indent_size = 4
Version confirmation
Following prerequisites
Neovim version
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1713484068
Branch info
main (Default/Latest)
Minimal (user) folder structure required to reproduce the issue
Minimal config with steps on how to reproduce the issue
none
Expected behavior
none
Additional information
I couldn't find the corresponding configuration item in the options.lua file? There is a smarttab item, but I don't know its purpose.
There is no expandtab and softtabstop item in the options.lua file.