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

The plug-in is not compatible with vscode-neovim #82

Closed
echaya opened this issue Apr 21, 2021 · 7 comments · Fixed by #83
Closed

The plug-in is not compatible with vscode-neovim #82

echaya opened this issue Apr 21, 2021 · 7 comments · Fixed by #83

Comments

@echaya
Copy link

echaya commented Apr 21, 2021

Hi, I've been trying out vscode-neovim lately and seems it is not fully compatible with python-indent

The exact issue:

when pressing o in normal mode, it shall insert a line below the current cursor line. However with python-indent enabled, it enters insert mode and leave the cursor in the same line.

I'm not entirely sure it is a python-indent issue or from vscode-neovim. But i have to give up python-indent for now as I'm migrating most workflow on vscode nowadays.

Let me know if additional info is needed on the bug.

@kbrose
Copy link
Owner

kbrose commented Apr 21, 2021

Thanks for the note @echaya.

I'm hoping this will be a simple update to the condition here: https://github.com/kbrose/vsc-python-indent/blob/master/package.json#L46 (&& vim.mode =~ /(Insert|Replace|SurroundInputMode)/). See #10 for more information

I've special cased the vim plugin, but perhaps the neovim plugin also needs to be included. I hope that they enable filtering in a similar way to the vim plugin. I'll try to dig in at some point in the near future.

@echaya
Copy link
Author

echaya commented Apr 22, 2021

thanks for the prompt reply @kbrose and looking forward to the update!

maybe neovim.mode == insert will just do the trick.

@kbrose
Copy link
Owner

kbrose commented Apr 22, 2021

Just double checking, is this the right extension? https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim

@kbrose
Copy link
Owner

kbrose commented Apr 22, 2021

@echaya is normal mode different than insert mode? (I don't use vim.)

If the python-indent extension only activated in insert mode, would that be correct behavior?

@echaya
Copy link
Author

echaya commented Apr 22, 2021

Just double checking, is this the right extension? https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim

It is the right plug-in.

@echaya is normal mode different than insert mode? (I don't use vim.)

If the python-indent extension only activated in insert mode, would that be correct behavior?

Insert mode is the mode people typing out most of the code while normal mode is to move around the cursor and make small changes on existing text (or going into insert mode for big changes). So i guess it makes sense to only enable python-indent during the insert mode.

@kbrose kbrose mentioned this issue Apr 22, 2021
3 tasks
@kbrose
Copy link
Owner

kbrose commented Apr 22, 2021

@echaya can you try getting the latest version (1.14.2) and see if that fixes things?

@echaya
Copy link
Author

echaya commented Apr 22, 2021 via email

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

Successfully merging a pull request may close this issue.

2 participants