Merge pull request #3010 from kevinoid/ps1-powershell

Alias ps1 filetype to powershell
This commit is contained in:
w0rp authored and GitHub committed 2020-08-13 13:45:49 +01:00
commit 0b77766337
3 files changed
+2 -7

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ let s:default_ale_linter_aliases = {
\ 'csh': 'sh', \ 'csh': 'sh',
\ 'javascriptreact': ['javascript', 'jsx'], \ 'javascriptreact': ['javascript', 'jsx'],
\ 'plaintex': 'tex', \ 'plaintex': 'tex',
\ 'ps1': 'powershell',
\ 'rmarkdown': 'r', \ 'rmarkdown': 'r',
\ 'rmd': 'r', \ 'rmd': 'r',
\ 'systemverilog': 'verilog', \ 'systemverilog': 'verilog',
-7
View File
@@ -25,13 +25,6 @@ Installation
Install PSScriptAnalyzer by any means, so long as it can be automatically Install PSScriptAnalyzer by any means, so long as it can be automatically
imported in PowerShell. imported in PowerShell.
Some PowerShell plugins set the filetype of files to `ps1`. To continue using
these plugins, use the ale_linter_aliases global to alias `ps1` to `powershell`
>
" Allow ps1 filetype to work with powershell linters
let g:ale_linter_aliases = {'ps1': 'powershell'}
<
g:ale_powershell_psscriptanalyzer_executable g:ale_powershell_psscriptanalyzer_executable
*g:ale_powershell_psscriptanalyzer_executable* *g:ale_powershell_psscriptanalyzer_executable*
+1
View File
@@ -1238,6 +1238,7 @@ g:ale_linter_aliases *g:ale_linter_aliases*
\ 'csh': 'sh', \ 'csh': 'sh',
\ 'javascriptreact': ['javascript', 'jsx'], \ 'javascriptreact': ['javascript', 'jsx'],
\ 'plaintex': 'tex', \ 'plaintex': 'tex',
\ 'ps1': 'powershell',
\ 'rmarkdown': 'r', \ 'rmarkdown': 'r',
\ 'rmd': 'r', \ 'rmd': 'r',
\ 'systemverilog': 'verilog', \ 'systemverilog': 'verilog',