Suppose $1<p<\infty$ and let $f,g\in L^p$. It is said in Wikipedia that $$ \|f+g\|_p=\|f\|_p+\|g\|_p\tag{*} $$ if and only if $f=cg$ for some $c\geq 0$ or $g=0$.
The "if" direction is trivial.
I would like to prove the other direction. (I believe this must have been asked before but I can't find one here.)
Suppose (*) is true. By the triangle inequality $$ \|f+g\|_p\leq\||f|+|g|\|_p\leq\|f\|_p+\|g\|_p $$ and thus $$ \|f+g\|_p=\||f|+|g|\|_p $$ which yields $|f+g|=|f|+|g|$ almost everywhere. Suppose $g\neq 0$. Then for a.e. $x$, one has $$ f(x)=a(x)g(x) $$ for some $a(x)\geq 0$. I'm stuck here with showing that $a(x)$ is a constant.
Rudin said in his book Real and Complex Analysis about this that "It is sometimes useful to know the conditions under which equality can hold in an inequality. In many cases this information may be obtained by examining the proof of the inequality." I will try to follow his wisdom and examine a proof of the triangle inequality:
Note that we would get the equality in (0) only if we get equality in (3), which implies that we have equality in (2) for almost every $x$: $$ |(1-\lambda)F(x)+\lambda G(x)|^p= (1-\lambda)|F(x)|^p+\lambda |G(x)|^p.\tag{4} $$ It follows from (4) that $$ F(x)=G(x)\quad a.e.\tag{5} $$ i.e. $$ \frac{f(x)}{1-\lambda}=\frac{g(x)}{\lambda}\quad a.e. $$ We are done.
To see how (4) implies (5), consider the following inequalities: $$ |(1-\lambda)a+\lambda b|^p\leq((1-\lambda)|a|+\lambda |b|)^p \leq (1-\lambda)|a|^p+\lambda|b|^p\tag{6} $$ When we have $ |(1-\lambda)a+\lambda b|^p= (1-\lambda)|a|^p+\lambda|b|^p $, (6) forces $$ |(1-\lambda)a+\lambda b|^p=((1-\lambda)|a|+\lambda |b|)^p =(1-\lambda)|a|^p+\lambda|b|^p.\tag{7} $$ Since the map $x\mapsto x^p$ is strictly convex (by the positve second derivative) on $(0,\infty)$, the second equal sign in (7) implies $|a|=|b|$ and thus $a=\pm b$. By the first equal sign in (7), we must have $a=b$.
[Added:] Note that this argument fails for $p=1$ (which was a typo in OP pointed out by a comment) since we have exploited the strict convexity of the map $x\mapsto x^p$ here. One actually has easy counterexamples for the statement when $p=1$.