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

Pyi files #458

Open
koalp opened this issue May 2, 2023 · 0 comments
Open

Pyi files #458

koalp opened this issue May 2, 2023 · 0 comments

Comments

@koalp
Copy link

koalp commented May 2, 2023

Hello,

pyi files are currently treated like .py file because they share the same nvim filetype (python), but they shouldn’t be formatted in the same way. (black does differentiate those two file formats).

I wonder what should be done :

  • modify neovim to add a python-stubs filetype ? That seem kinda breaking.
  • modify neoformat to detect .pyi files ?

A while ago i created a topic on neovim discourse but had no response : https://neovim.discourse.group/t/how-to-differentiate-pyi-and-py-files/3559

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

1 participant