opencode icon indicating copy to clipboard operation
opencode copied to clipboard

How to configure LSP?

Open Suaig opened this issue 6 days ago • 2 comments

Question

I use opencode for embedded development. and I found LSP report many error and warning to AI assistant. and assistant always want to fix it. but it is LSP error. LSP haven't found them. Like below:

Error [5:10] 'FreeRTOS.h' file not found Error [27:8] Unknown type name 'w25qxx_io_t' Error [47:18] Call to undeclared library function 'strlen' with type 'unsigned long long (const char *)'; ISO C99 and later do not support implicit function declarations

So my question is how to configure LSP make the LSP report correct information to AI assistant. or can we disable this report?

Suaig avatar Jan 09 '26 01:01 Suaig