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

Provide function callback for customizing filetype configurations #21

Closed
andrewferrier opened this issue Aug 10, 2022 · 3 comments · May be fixed by #160
Closed

Provide function callback for customizing filetype configurations #21

andrewferrier opened this issue Aug 10, 2022 · 3 comments · May be fixed by #160
Labels
enhancement New feature or request

Comments

@andrewferrier
Copy link
Owner

No description provided.

@andrewferrier andrewferrier added the enhancement New feature or request label Aug 10, 2022
@andrewferrier andrewferrier modified the milestone: 0.1 Aug 10, 2022
@andrewferrier
Copy link
Owner Author

Elegant though this might be as a mechanism, I'm not convinced it's actually necessary. Removing from 0.1 for now.

@andrewferrier andrewferrier changed the title Provide function callback customization mechanism as well Provide function callback for customizing filetype configurations Aug 14, 2022
@andrewferrier andrewferrier added this to the 0.4 milestone Aug 14, 2022
@andrewferrier
Copy link
Owner Author

This would include e.g. filepath, so that we can use heuristics to tell if it's a NeoVim lua file vs. a normal lua file.

@andrewferrier
Copy link
Owner Author

I'm thinking that the function callback should be:

  • Configured at the top level of the config.
  • Take the following params (in an extensible object):
    • Full file path
    • Effective filetype (using position in file)
    • Row, column
  • Return an object either the same as existing filetype or nil (which means fallback to the configured filetypes)

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

Successfully merging a pull request may close this issue.

1 participant