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

Configuration (Documentation) #153

Open
wolfisberg opened this issue May 17, 2021 · 2 comments
Open

Configuration (Documentation) #153

wolfisberg opened this issue May 17, 2021 · 2 comments

Comments

@wolfisberg
Copy link

Is there any documentation about possible configurations of this plugin?

I can't seem to find any and searching from issues I get the sense that some things can be configured.

For example the plugin works out of the box for .css and .sh files, but not for .lua and .rasi (admittedly the last one is pretty niche). Can support be enabled/disabled on a file type basis?

@ap
Copy link
Owner

ap commented May 18, 2021

Support for each filetype has to be implemented separately; see the contents of the after/syntax/ directory. This is by design.

Once added there is no option to disable support for a filetype, although there are a few functions which are meant as supported API but remain undocumented, which you can call from autocommands to approximate various configuration options. None of this should be the way it is, I’ve never just never gotten around to tidying it up properly.

@ap
Copy link
Owner

ap commented May 18, 2021

(It’s not as straightforward how to make disabling filetypes configurable as it might seem, because of how the plugin is structured with the loaders in after/syntax/ and the main code in autoload/. (That will probably change. I think.))

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