-
Apologies for the noob question. I updated my home-manager flake recently which in turn updated my nvf version. And for some reason, now my tabs are 4-spaces across all file types / languages? I wanted to set identation to use spaces instead of tabs, and for it to be 2 spaces big by default. But I couldn't find an option for indentation style and size in the configuration options manual. Is this something I need to set in a Lua file and then add to NVF in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Indent style and size is a control in Neovim itself, you may set those with See t;dr: vim = {
tabstop = 2;
shiftwidth = 2;
}; will globally set those. |
Beta Was this translation helpful? Give feedback.
Indent style and size is a control in Neovim itself, you may set those with
vim.options
(which get translated tovim.o.*
)See
:help tabstop
,:help softtabstop
and:help shiftwidth
on how those options work, and this related PR for my motivations on the change.t;dr:
will globally set those.