This is from my lecture notes.
Let $\mathfrak{g}$ be a comple lie algebra. Let $x\in \mathfrak{g}$ and $\Sigma(x)\subseteq \mathbb{C}$ be the set of eigenvalues of $ad(x)\in \mathfrak{gl(g)}$. ($ad(x)$ here means adjoint of x, i.e. $ad(x)y=xy - yx$.) Since $ad(x)x=[x,x]=0$ for all $x$ we see that $0\in \Sigma(x)$ for all $x$. For $\lambda\in\Sigma(x)$ we denote by $\mathfrak{g}_{\lambda}(x)$ the generalized eigenspace of λ, that is,
$$\mathfrak{g}_{\lambda}(x) = \{y\in \mathfrak{g} | (ad(x) - λid_\mathfrak{g})^ny = 0 \text{ for some } n\in \mathbb{N}\}$$
How do you get from these definitions, the following equality $$\mathfrak{g}=\oplus_{\lambda\in\Sigma(x)}\mathfrak{g}_{\lambda}(x)$$ Here the direct sum is the direct sum of lie algebras.