Implement go to defintion for LSP linters

This commit is contained in:
w0rp
2017-11-26 22:27:08 +00:00
parent 01318b6930
commit 21b460bb1d
4 changed files with 227 additions and 18 deletions

View File

@@ -107,3 +107,12 @@ function! ale#lsp#message#Completion(buffer, line, column, trigger_character) ab
return l:message
endfunction
function! ale#lsp#message#Definition(buffer, line, column) abort
return [0, 'textDocument/definition', {
\ 'textDocument': {
\ 'uri': ale#path#ToURI(expand('#' . a:buffer . ':p')),
\ },
\ 'position': {'line': a:line - 1, 'character': a:column},
\}]
endfunction