Reputation: 1620
Coc in Neovim seems to be unable to see #include <avr/io.h>
since I'm guessing that it's include path isn't known by coc. How can I allow coc to see this include path?
Upvotes: 0
Views: 4957
Reputation: 1620
A solution was found to be the following:
compile_flags.txt
.compile_flags.txt
file, for the AVR includes, add -I/usr/avr/include
.NOTE: The compile_flags.txt
file only accepts a single argument per line, so the actual contents of this file should be
-I
/usr/avr/include
References: JSON Compilation Database Format Specification
Upvotes: 3