p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
448 stars 16 forks source link

Weird indentation on enter #45

Closed gabyx closed 11 months ago

gabyx commented 11 months ago

I am using this plugin. and a .clang-format in the root. The formatting works normally over the LSP.

However when I press enter

{/*< cursor here/*}

the line then looks like

{
␣␣␣␣␣␣␣␣/*<cursor here/*
␣␣␣␣}

I dont know where these indents on the last line come from? also the indentation on the line where the cursor is is not 4 spaces witch is set in the .editorconfig file.

This might not be related to the clangd extensions, but I am trying to figureing out where the problem comes from? Do you might have any idea?

Thanks a lot

p00f commented 11 months ago

No idea