summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2020-08-13 13:45:49 +0100
committerGitHub <noreply@github.com>2020-08-13 13:45:49 +0100
commit0b7776633764ab4a3c25b73e8ef8a604bebdd638 (patch)
treeba9035dfad45daddf8e9c94c9d3c09224c97dfbf
parent979062235a23d2f2bbe176c64e649e9182826d2d (diff)
parent8c0b0f085f21d96216a337aa4fae027a3e391c99 (diff)
downloadale-0b7776633764ab4a3c25b73e8ef8a604bebdd638.zip
Merge pull request #3010 from kevinoid/ps1-powershell
Alias ps1 filetype to powershell
-rw-r--r--autoload/ale/linter.vim1
-rw-r--r--doc/ale-powershell.txt7
-rw-r--r--doc/ale.txt1
3 files changed, 2 insertions, 7 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim
index f81b62be..0e935149 100644
--- a/autoload/ale/linter.vim
+++ b/autoload/ale/linter.vim
@@ -14,6 +14,7 @@ let s:default_ale_linter_aliases = {
\ 'csh': 'sh',
\ 'javascriptreact': ['javascript', 'jsx'],
\ 'plaintex': 'tex',
+\ 'ps1': 'powershell',
\ 'rmarkdown': 'r',
\ 'rmd': 'r',
\ 'systemverilog': 'verilog',
diff --git a/doc/ale-powershell.txt b/doc/ale-powershell.txt
index c28ef9ea..485c9bd0 100644
--- a/doc/ale-powershell.txt
+++ b/doc/ale-powershell.txt
@@ -25,13 +25,6 @@ Installation
Install PSScriptAnalyzer by any means, so long as it can be automatically
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*
diff --git a/doc/ale.txt b/doc/ale.txt
index c7664da0..ea49eedb 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1238,6 +1238,7 @@ g:ale_linter_aliases *g:ale_linter_aliases*
\ 'csh': 'sh',
\ 'javascriptreact': ['javascript', 'jsx'],
\ 'plaintex': 'tex',
+ \ 'ps1': 'powershell',
\ 'rmarkdown': 'r',
\ 'rmd': 'r',
\ 'systemverilog': 'verilog',