-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bug: nix filetype #1
Comments
Hi @tami5! Thanks for the feedback! Currently only |
Oh I see, Yah I think tree-sitter would be better. Thanks Not sure if I need to open another issue for this, but when I tried it out on lua, it indented the list items 4 space instead of 2 space. |
Ah good point! I use 4 spaces for everything so didn't notice this. I'll open a separate issue for that. See #2 |
Thanks @AckslD |
@tami5 Could you update the plugin and see if the indentation works for you now? |
Yep the indentation is fixed, but I noticed that it insert a comma even though there is a comma at list item in the list. requires = { 'nvim-lua/lsp_extensions.nvim', 'onsails/lspkind-nvim', 'glepnir/lspsaga.nvim', }
to requires = {
'nvim-lua/lsp_extensions.nvim',
'onsails/lspkind-nvim',
'glepnir/lspsaga.nvim',
,
}
|
@tami5 Thanks for pointing this out! This seems to be an issue with Btw, another issue I noticed is that if there is no whitespace at all after that last comma or more generally when either the motion or visual selection starts/ends on a comma. This is because when the cursor is on a comma |
Amazing work @AckslD . hmmm I'm not quite sure If I understand you correctly? can you show a textual demo |
@tami5 Yeah maybe it wasn't very clear :) So let's say you have for example:
and you're cursor is the
now the question is which parameters should be made so that they are on separate lines, i.e. should it be
I've now opted for
|
Yah I feel strict make sense. Although I'd find my self rarely using the above use case as I like to have the same reverse behavior of J at the same line. By thar I mean |
Hi @tami5, in case you're still interested in this, I've started a complete re-write of this plugin which uses treesitter and in general I think a much better implementation. Feel free to check it out :) |
Great news @AckslD 😍 . surething |
Hey @AckslD, awesome work, I like the concept of it a lot.
I've gave it a try and at first, it appended
,
to the end of the list where it shouldn't have because of how nix syntax.So I've create a setting function that let's me decide when to skip adding comma to the end of the list like so:
I'm sure you have way better idea for this issue.
But the real issue I have is how revj transforms this
to this
Where it should've transformed it to this:
Thanks
The text was updated successfully, but these errors were encountered: