Neovim, LSP format issues all of a sudden

It was working fine until yesterday, now I’m getting this error. I made sure it’s installed and configured correctly, clang is also installed, made sure.

I booted up the computer today and started working on a project (I’m learning C++) just find out the LSP can’t find the matching language server for some reason.

I was thinking of switching to VS but I like the way I set up neovim.

plugins.lua https://lemmy.world/pictrs/image/cf68aa82-1e8d-434b-b269-2d22b6c9e19e.png

null-ls.lua https://lemmy.world/pictrs/image/12445d75-ed49-4888-9b42-81b59a940308.png

mappings.lua https://lemmy.world/pictrs/image/bd85836e-64ce-4fb2-a570-9d89d3e7912d.png

lspconfig.lua https://lemmy.world/pictrs/image/b87f5d82-bd77-4e79-953d-868b0842ebff.png

chadrc.lua https://lemmy.world/pictrs/image/6c0ec320-e993-4fb9-aa1d-22386808b818.png

I appreciate the help!

psmt,

In plugins.lua, you’ve commented the line loading the null-ls config, which was setting clang-format as a null-ls source, maybe that’s your culprit?

Digester,
@Digester@lemmy.world avatar

That’s it. I don’t know why it was commented in the first place. Thanks for pointing it out! Now it works

simonced,

I can’t read your config because the screen shot is too small, you should post block of text with ``` before and after.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">It'll loke like this.
</span>

Then, I don’t do C++, and I have never encountered this issue, but if you’re using Mason in your setup, you might want to try to update your language server, then use the command LspRestart maybe…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines