Skip to content
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

Code generation is not respecting vim TAB configuration #262

Closed
amgodoi opened this issue Sep 19, 2023 · 3 comments
Closed

Code generation is not respecting vim TAB configuration #262

amgodoi opened this issue Sep 19, 2023 · 3 comments

Comments

@amgodoi
Copy link

amgodoi commented Sep 19, 2023

When any code is generated (like add toString method), indentation inserts TABs instead of SPACES.

Vim configuration:

set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
set smartindent
set autoindent

Should code generation insert SPACES with this configuration?

Am I missing some coc-java configuration?

@chemzqm
Copy link
Member

chemzqm commented Sep 20, 2023

@amgodoi
Copy link
Author

amgodoi commented Sep 20, 2023

Hi!

For some reason after vim restart it worked.

Server Log:

image

I think itś OK.

@chemzqm
Copy link
Member

chemzqm commented Sep 21, 2023

Could be buffer not saved to file.

@chemzqm chemzqm closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants