this post was submitted on 17 Oct 2023
1 points (100.0% liked)

Emacs

310 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

When I installed doom emacs, I added lsp, c and c++ support and other things to init.el. When I started writing code in C, after adding the header file, auto completion advised me to add a comment to the code and other strange things. What could this be related to?

top 2 comments
sorted by: hot top controversial new old
[–] Hercislife23@alien.top 1 points 11 months ago

I can't speak for C but I know Python has a similar thing in PEP8, to add comments at the top of a file. So lsp will show that as an error/warning.

[–] nanowillis@alien.top 1 points 11 months ago

Sounds like expected behavior. Many LSPs have style checkers that warn you if you deviate from good practices (documenting functions, commenting headers, etc). You can almost certainly disable these things, but this would depend on which language server you're using