-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Alias ps1 filetype to powershell #3010
Conversation
Rather than requiring users to alias ps1 to powershell themselves, include it in s:default_ale_linter_aliases. Since [vim-ps1] is a popular (the only?) PowerShell ftplugin and there do not appear to be any other uses of ft=ps1 on vim.org, this seems like a safe and reasonable default. [vim-ps1]: http://www.vim.org/scripts/script.php?script_id=1327 Signed-off-by: Kevin Locke <[email protected]>
Hi @kevinoid I used powershell over ps1 as I didn't agree on vim-ps1's decision to use I've also made https://github.com/zigford/vim-powershell in the hopes that others will contribute and we can have sane powershell + vim functionality. Anyway, I digress. The proper answer is that I did not know about |
Thanks @zigford! Makes sense to me. I'm looking forward to checking out vim-powershell. @w0rp: I think it's safe to merge. (If you approve, of course.) |
This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See |
@w0rp I think this PR is good to merge and not stale. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this is good. The bot is doing its job correctly.
Cheers! 🍻 |
Yes indeed. Thanks for reviewing and merging it! 🥂 |
Thanks for writing a linter for PSScriptAnalyzer @zigford! I was surprised that it isn't used by default with vim-ps1 due to requiring manual configuration to alias the
ps1
filetype topowershell
. Is there a reason you chose not to include it ins:default_ale_linter_aliases
?Since vim-ps1 is a popular (the only?) PowerShell ftplugin and there do not appear to be any other uses of the
ps1
filetype on vim.org, this seems like a safe and reasonable default. This PR would add it, assuming there wasn't a specific reason to avoid it.Thanks again,
Kevin