Ionide-vim icon indicating copy to clipboard operation
Ionide-vim copied to clipboard

closing brace wrongly indented

Open rbauduin opened this issue 8 months ago • 3 comments

Describe the bug The closing brace of a newly entered braces pair is idented wrongly after it is put on its own line.

To Reproduce Press enter between braces so that the closing brace is placed alone on a line.

Expected behaviour Closing brace is put at same indentation as opening brace

Screenshots

https://github.com/ionide/Ionide-vim/assets/9960888/f5ee6aa3-dcf3-472b-8c65-053dd5586a28

Environment (please complete the following information):

  • OS: Linux
  • Neovim version: NVIM v0.9.2
  • dotnet SDK version: 6.0.415

rbauduin avatar Oct 22 '23 11:10 rbauduin

I think the whole syntax and indent files need to be revisited. They are from the ancient era, so they have some performance problems which can be solved today, and they also don't support the newest syntax of today's F#.

I think now is the best time to do this, since F# 8 has just been released with a lot of syntax changes.

cannorin avatar Nov 16 '23 05:11 cannorin

I'm wondering if we can somehow import the syntax and indent configurations from Ionide-VSCode, so that we can avoid maintaining two versions of those files.

cannorin avatar Nov 16 '23 05:11 cannorin

Since vim's indent program is in vimscript, using the VSCode version would be difficult to import, I believe.

I think Ionide should switch to the indent file from here: https://github.com/PhilT/vim-fsharp

I'm finding it very consistent and fast compared to Ionide's, after using it myself over the past few months.

JulesNP avatar Nov 26 '23 17:11 JulesNP