Open nv-quan opened 1 month ago
This was discussed already a couple of times, say in https://github.com/yegappan/lsp/pull/442/files and https://github.com/yegappan/lsp/commit/e3216cae9583c655bfb1c3cfac399738d0521621, and https://github.com/yegappan/lsp/commit/87189faf0bd4a2f974408df2d8c261dbfc3348dd ; the doc now states the correct order of calling LspOptionsSet and LspAddServer. However, I'd agree that it would make users' life simpler if the importance of this order was drawn to attention.
The documentation states that setting
autoComplete
to false will automatically setomniComplete
to true, andomnifunc
will be set. However, this does not work as expected whenLspOptionsSet
is called afterLspAddServer
. The documentation should clarify the required order of callingLspOptionsSet
andLspAddServer
. Alternatively, the code should ensureomniComplete
is set correctly afterLspOptionsSet
is called, or even better, refactorLspAddServer
to accept LSP options as an argument.