summaryrefslogtreecommitdiff
path: root/autoload/ale/lsp.vim
diff options
context:
space:
mode:
authorDalius Dobravolskas <dalius.dobravolskas@gmail.com>2021-12-17 01:09:26 +0200
committerGitHub <noreply@github.com>2021-12-17 08:09:26 +0900
commit5b792c764196aeb45eb6025c6c1c9727084c2feb (patch)
treedf96221664bac924f584db5e25d5deb736e44a6a /autoload/ale/lsp.vim
parente4ec2e4dc74fc24d57fd74770d2aa277425dde7c (diff)
downloadale-5b792c764196aeb45eb6025c6c1c9727084c2feb.zip
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.
Diffstat (limited to 'autoload/ale/lsp.vim')
-rw-r--r--autoload/ale/lsp.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/lsp.vim b/autoload/ale/lsp.vim
index 75d81525..02723f56 100644
--- a/autoload/ale/lsp.vim
+++ b/autoload/ale/lsp.vim
@@ -38,6 +38,7 @@ function! ale#lsp#Register(executable_or_address, project, init_options) abort
\ 'capabilities': {
\ 'hover': 0,
\ 'rename': 0,
+ \ 'filerename': 0,
\ 'references': 0,
\ 'completion': 0,
\ 'completion_trigger_characters': [],
@@ -380,6 +381,7 @@ function! ale#lsp#MarkConnectionAsTsserver(conn_id) abort
let l:conn.capabilities.typeDefinition = 1
let l:conn.capabilities.symbol_search = 1
let l:conn.capabilities.rename = 1
+ let l:conn.capabilities.filerename = 1
let l:conn.capabilities.code_actions = 1
endfunction