From 5b792c764196aeb45eb6025c6c1c9727084c2feb Mon Sep 17 00:00:00 2001 From: Dalius Dobravolskas Date: Fri, 17 Dec 2021 01:09:26 +0200 Subject: ALEFileRename command added. (#4012) * ALEFileRename command added. This command renames file and uses tsserver `getEditsForFileRename` to fix import paths in Typescript files. * ale#util#Input fix * Even more fixes. * Linting error fix. --- plugin/ale.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin') diff --git a/plugin/ale.vim b/plugin/ale.vim index d19824b1..423a743a 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -270,6 +270,9 @@ command! -bar ALEImport :call ale#completion#Import() " Rename symbols using tsserver and LSP command! -bar -bang ALERename :call ale#rename#Execute() +" Rename file using tsserver +command! -bar -bang ALEFileRename :call ale#filerename#Execute() + " Apply code actions to a range. command! -bar -range ALECodeAction :call ale#codefix#Execute() @@ -316,6 +319,7 @@ nnoremap (ale_documentation) :ALEDocumentation inoremap (ale_complete) :ALEComplete nnoremap (ale_import) :ALEImport nnoremap (ale_rename) :ALERename +nnoremap (ale_filerename) :ALEFileRename nnoremap (ale_code_action) :ALECodeAction nnoremap (ale_repeat_selection) :ALERepeatSelection -- cgit v1.2.3