\(=\lim\limits_{x\rightarrow1}\dfrac{\left(x-1\right)\left(x+1\right)-\left(a+2\right)\left(x-1\right)}{\left(x-1\right)\left(x^2+x+1\right)}\)
\(=\lim\limits_{x\rightarrow1}\dfrac{\left(x-1\right)\left(x-a-1\right)}{\left(x-1\right)\left(x^2+x+1\right)}\)
\(=\lim\limits_{x\rightarrow1}\dfrac{x-a-1}{x^2+x+1}=\dfrac{-a}{3}\)