Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adding double brackets, quotes and newline indentation #89

Open
TheAyes opened this issue Dec 7, 2024 · 2 comments
Open

Fix adding double brackets, quotes and newline indentation #89

TheAyes opened this issue Dec 7, 2024 · 2 comments

Comments

@TheAyes
Copy link

TheAyes commented Dec 7, 2024

So I'm a bit intrigued since it's been like this for quite a while and it seems noone is noticing.

When writing nix expressions in (my case) intellij, I also have to manually place both braces and reindent the newline.

Let's see what I mean...

I have this line right here and would like to add some settings
image

The obvious next step is to open a set or array of attributes with a brace or bracket, but upon doing so, only the one I actually entered is being placed.
image

Usually in any other language (ts for example) it would place both, the opening and closing bracket and put the cursor in between.
image

Next would be to insert a newline to add several properties to that list. upon doing that I'd expect the cursor to be on the next line aswell as one indent further in. but the indenting seems to be missing out.
image

And while these are two very minor issues, they really add up the longer you use it. Especially when using other languages where this actually works as it's supposed to.

@JojOatXGME
Copy link
Contributor

I have noticed the issue as well, but haven't spent the time to investigate how to fix it. I will spend a bit of time this weekend to search about how to address this via the IntelliJ Platform Plugin SDK. Maybe there is some easy solution. Otherwise, I am also always happy about contributions. 😄

@TheAyes
Copy link
Author

TheAyes commented Dec 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants