surmon-china / vue-codemirror

@codemirror code editor component for @vuejs
https://github.surmon.me/vue-codemirror
MIT License
3.25k stars 380 forks source link

YAML - no auto-indent on new line #179

Closed borsTiHD closed 1 year ago

borsTiHD commented 1 year ago

Describe the bug

Hi all, I don't know if its really a bug, or if I didn't set it up correctly.
But I dont have a working auto-indent on new lines.

The thing is, it isn't even working on your documentation/examples for vue-codemirror ( https://github.surmon.me/vue-codemirror - set language to yaml ).
With the older codemirror 5 mode, however, it works perfectly ( https://codemirror.net/5/mode/yaml/index.html ).

Can someone please help me?

Reproduction

Try the official example page for yaml:

System Info

na

Used Package Manager

npm

Validations

borsTiHD commented 1 year ago

Nevermind... it's working after I upgraded @codemirror/legacy-modes from 6.1.0 to the latest 6.3.0.
Thanks for your hard work. :D