summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Locke <kevin@kevinlocke.name>2020-02-16 14:03:41 -0700
committerKevin Locke <kevin@kevinlocke.name>2020-02-16 14:03:41 -0700
commit8c0b0f085f21d96216a337aa4fae027a3e391c99 (patch)
tree4ae0ee039ea259aacf8e6c5fdf333ca74a199417
parentd6d2a0c77010db6a75a8942e2af9606971738c23 (diff)
downloadale-8c0b0f085f21d96216a337aa4fae027a3e391c99.zip
Alias ps1 filetype to powershell
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 <kevin@kevinlocke.name>
-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 a85f06e2..f266a105 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 eafbc119..6fad01aa 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1188,6 +1188,7 @@ g:ale_linter_aliases *g:ale_linter_aliases*
\ 'csh': 'sh',
\ 'javascriptreact': ['javascript', 'jsx'],
\ 'plaintex': 'tex',
+ \ 'ps1': 'powershell',
\ 'rmarkdown': 'r',
\ 'rmd': 'r',
\ 'systemverilog': 'verilog',