New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set tabstop doesn't works #14774
Comments
Neovim doesn't read |
in my
So, other parametrs from .vimrc works correctly. |
Does it work if you set it in your |
Note, that |
@chrisbra This lua code does not work. I never understood softtabstop and in treesitter they set it to 0 for tests, so I copied that. vim.bo.expandtab = true; --use space character on pressing Tab key
vim.bo.softtabstop = 0; --Tab and BS: insert+delete number of spaces
if ( vim.bo.filetype == "cpp" ) then -- something is very broken here
vim.bo.shiftwidth = 4; --visual mode >,<-key: number of spaces for indendation
else
vim.bo.shiftwidth = 2;
end
if ( vim.bo.filetype == "cpp" ) then -- something is very broken here
vim.bo.tabstop = 4; --Tab key: number of spaces for indendation
else
vim.bo.tabstop = 2;
end and sets always to 2. int main() {
//minimal example file
int a = 3;
if (a == 3)
{//cursor here
}
} int main() {
//minimal example file
int a = 3;
if (a == 3)
{
//cursor here
}
} However having no branching to check the filetype, the code works. |
Take a look at In any case, this doesn't appear to be a bug. |
nvim --version
: v0.4.3in my .config/nvim/init.vim. i add:
So, other parametrs from .vimrc works correctly.
But... I set in .vimrc parametrs:
In vim(Vi IMproved 8.1) this works correctly.
But in nvim - this doesn't work.
Actual behaviour
tab add 8 spaces
Expected behaviour
tab should add 2 spaces
The text was updated successfully, but these errors were encountered: