I used to be a nano user but now whenever I want to use a terminal text editor I will almost always use micro as it has built in support for most languages.

https://micro-editor.github.io/

Also checkout Helix for those who want Vim with nice defaults (like LSP).

https://helix-editor.com

https://github.com/helix-editor/helix