summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorBartek thindil Jasicki <thindil@laeran.pl>2020-09-11 10:38:36 +0200
committerBartek thindil Jasicki <thindil@laeran.pl>2020-09-11 10:38:36 +0200
commit1781b1eab0f9c8e6dd5beca302bd9cd430d7f7b2 (patch)
tree877345d38bc61e2b492e5f04336f1cdb564d7c7e /plugin
parentc78be861035765d268a5533cf583803e22d56d1c (diff)
parent08295ce17405cb5f6c80d2f726262493bfd21210 (diff)
downloadale-1781b1eab0f9c8e6dd5beca302bd9cd430d7f7b2.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 6a947ea7..18d867ee 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -195,6 +195,8 @@ command! -bar ALEStopAllLSPs :call ale#lsp#reset#StopAllLSPs()
" A command for linting manually.
command! -bar ALELint :call ale#Queue(0, 'lint_file')
+" Stop current jobs when linting.
+command! -bar ALELintStop :call ale#engine#Stop(bufnr(''))
" Define a command to get information about current filetype.
command! -bar ALEInfo :call ale#debugging#Info()
@@ -204,7 +206,7 @@ command! -bar ALEInfoToClipboard :call ale#debugging#InfoToClipboard()
command! -bar -nargs=1 ALEInfoToFile :call ale#debugging#InfoToFile(<f-args>)
" Fix problems in files.
-command! -bar -nargs=* -complete=customlist,ale#fix#registry#CompleteFixers ALEFix :call ale#fix#Fix(bufnr(''), '', <f-args>)
+command! -bar -bang -nargs=* -complete=customlist,ale#fix#registry#CompleteFixers ALEFix :call ale#fix#Fix(bufnr(''), '<bang>', <f-args>)
" Suggest registered functions to use for fixing problems.
command! -bar ALEFixSuggest :call ale#fix#registry#Suggest(&filetype)
@@ -229,8 +231,12 @@ command! -bar ALEDocumentation :call ale#hover#ShowDocumentationAtCursor()
" Search for appearances of a symbol, such as a type name or function name.
command! -nargs=1 ALESymbolSearch :call ale#symbol#Search(<q-args>)
+" Complete text with tsserver and LSP
command! -bar ALEComplete :call ale#completion#GetCompletions('ale-manual')
+" Try to find completions for the current symbol that add additional text.
+command! -bar ALEImport :call ale#completion#Import()
+
" Rename symbols using tsserver and LSP
command! -bar ALERename :call ale#rename#Execute()
@@ -275,6 +281,7 @@ nnoremap <silent> <Plug>(ale_find_references) :ALEFindReferences<Return>
nnoremap <silent> <Plug>(ale_hover) :ALEHover<Return>
nnoremap <silent> <Plug>(ale_documentation) :ALEDocumentation<Return>
inoremap <silent> <Plug>(ale_complete) <C-\><C-O>:ALEComplete<Return>
+nnoremap <silent> <Plug>(ale_import) :ALEImport<Return>
nnoremap <silent> <Plug>(ale_rename) :ALERename<Return>
nnoremap <silent> <Plug>(ale_repeat_selection) :ALERepeatSelection<Return>