There are some apps listed here. Documents does let you create and edit notes, but it handles lots of other tasks as well. If you want something more focused on plain text notes, I recommend Editorial.
That idea may not work as notes taking and document archiving/retrieval are different modes of operation needing different ways of user interface to accomplish the stated goal.
I’m using EagleFiler without sync on laptop (main Library for documents and a separate EmailArchive library) and UpNote for notes on iPhone and Mac laptop/Windows desktop. UpNote is an Electron app, but you’d never guess - feels like a native app.
You can certainly use EagleFiler’s editor for taking notes, either plain text or RTF. With rich text, you can enter list mode and use Tab/Shift-Tab to give an indented structure to your notes. Or, depending on the other app that you’re using, you may be able to use it to edit the files directly in your EagleFiler library.
I have an EagleFiler folder called “prefix” in which I put my note files whose filename is prefixed with one of the note types I like to create, for example, “how to”, “lists”, and “logs”. I set up a custom search for each prefix in the sidebar for quick access to each type of note.