vim-lsc icon indicating copy to clipboard operation
vim-lsc copied to clipboard

Tabs being replaced with spaces after a rename

Open ainar-g opened this issue 3 years ago • 0 comments

Versions:

vim-lsc

ab952d62

clangd

clangd version 10.0.0-4ubuntu1

Config:

let g:lsc_server_commands = {
\  'c': {
\    'command': 'clangd',
\    'log_level': -1,
\    'suppress_stderr': v:true,
\  },
\}

Before rename:

int main(void)
{
	int x = 0;
	return x;
}

After rename:

int main(void)
{
  int e = 0;
  return e;
}

I have a .clang-format file in the directory which tells clang-format and clangd to use tabs, so I doubt that it's clangd's fault.

ainar-g avatar Sep 05 '20 13:09 ainar-g