You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALE currently searches through all language servers configured with ale_linters and discovers which of them offer capabilities for specific features, such as code completion, "go to definition", hover information, and so on. ALE will then try to either combine the results of multiple tools together for a feature, or stop on the first one it can find where it doesn't make sense to combine the results together.
We should add support to configure which linters are used for which features, so you can explicitly prefer one tool over another one, in an order that is user-configured. At the moment the only similar option we have is ale_linters_ignore, which is for disabling specific linters, and overrides the selection from ale_linters. We will keep this option.
Because the setting will not cause ALE to go and enable a linter, which is already configured with ale_linters, we do not need to write the filetypes into the Dictionary, which will simplify the design and use of the setting. You could list out all of your preferences across all languages in a straight List for each feature globally, and list only options specific to one language in an ftplugin file or shared config. As always, I recommend writing b: configuration variables wherever possible instead of g: variables. (Except maybe in shared third party plugins that make it harder for you to set your own configuration specific to your system.)
NOTE: If anyone can think of a better name than ale_linter_features, give it to me. I might think of a better one along the way.
The text was updated successfully, but these errors were encountered:
ALE currently searches through all language servers configured with
ale_linters
and discovers which of them offer capabilities for specific features, such as code completion, "go to definition", hover information, and so on. ALE will then try to either combine the results of multiple tools together for a feature, or stop on the first one it can find where it doesn't make sense to combine the results together.We should add support to configure which linters are used for which features, so you can explicitly prefer one tool over another one, in an order that is user-configured. At the moment the only similar option we have is
ale_linters_ignore
, which is for disabling specific linters, and overrides the selection fromale_linters
. We will keep this option.A new option could take the following forms.
Because the setting will not cause ALE to go and enable a linter, which is already configured with
ale_linters
, we do not need to write the filetypes into theDictionary
, which will simplify the design and use of the setting. You could list out all of your preferences across all languages in a straightList
for each feature globally, and list only options specific to one language in anftplugin
file or shared config. As always, I recommend writingb:
configuration variables wherever possible instead ofg:
variables. (Except maybe in shared third party plugins that make it harder for you to set your own configuration specific to your system.)NOTE: If anyone can think of a better name than
ale_linter_features
, give it to me. I might think of a better one along the way.The text was updated successfully, but these errors were encountered: