forked from amix/vimrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
1,572 additions
and
1,151 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
" Author: RyanSquared <[email protected]> | ||
" Description: `fusion-lint` linter for FusionScript files | ||
|
||
let g:ale_fuse_fusionlint_executable = | ||
\ get(g:, 'ale_fuse_fusionlint_executable', 'fusion-lint') | ||
|
||
let g:ale_fuse_fusionlint_options = | ||
\ get(g:, 'ale_fuse_fusionlint_options', '') | ||
call ale#Set('fuse_fusionlint_executable', 'fusion-lint') | ||
call ale#Set('fuse_fusionlint_options', '') | ||
|
||
function! ale_linters#fuse#fusionlint#GetExecutable(buffer) abort | ||
return ale#Var(a:buffer, 'fuse_fusionlint_executable') | ||
endfunction | ||
|
||
function! ale_linters#fuse#fusionlint#GetCommand(buffer) abort | ||
return ale#Escape(ale_linters#fuse#fusionlint#GetExecutable(a:buffer)) | ||
\ . ' ' . ale#Var(a:buffer, 'fuse_fusionlint_options') | ||
\ . ale#Pad(ale#Var(a:buffer, 'fuse_fusionlint_options')) | ||
\ . ' --filename %s -i' | ||
endfunction | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
" Author: t_t <[email protected]> | ||
" Description: Integrate ALE with flow-language-server. | ||
|
||
call ale#Set('javascript_flow_ls_executable', 'flow') | ||
call ale#Set('javascript_flow_ls_use_global', | ||
\ get(g:, 'ale_use_global_executables', 0) | ||
\) | ||
|
||
function! ale_linters#javascript#flow_ls#GetExecutable(buffer) abort | ||
return ale#node#FindExecutable(a:buffer, 'javascript_flow_ls', [ | ||
\ 'node_modules/.bin/flow', | ||
\]) | ||
endfunction | ||
|
||
function! ale_linters#javascript#flow_ls#GetCommand(buffer) abort | ||
let l:executable = ale_linters#javascript#flow_ls#GetExecutable(a:buffer) | ||
|
||
return ale#Escape(l:executable) . ' lsp --from ale-lsp' | ||
endfunction | ||
|
||
function! ale_linters#javascript#flow_ls#FindProjectRoot(buffer) abort | ||
let l:flow_config = ale#path#FindNearestFile(a:buffer, '.flowconfig') | ||
|
||
if !empty(l:flow_config) | ||
return fnamemodify(l:flow_config, ':h') | ||
endif | ||
|
||
return '' | ||
endfunction | ||
|
||
call ale#linter#Define('javascript', { | ||
\ 'name': 'flow-language-server', | ||
\ 'lsp': 'stdio', | ||
\ 'executable_callback': 'ale_linters#javascript#flow_ls#GetExecutable', | ||
\ 'command_callback': 'ale_linters#javascript#flow_ls#GetCommand', | ||
\ 'project_root_callback': 'ale_linters#javascript#flow_ls#FindProjectRoot', | ||
\ 'language': 'javascript', | ||
\}) |
38 changes: 38 additions & 0 deletions
38
sources_non_forked/ale/ale_linters/kotlin/languageserver.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
" Author: MTDL9 <https://github.com/MTDL9> | ||
" Description: Support for the Kotlin language server https://github.com/fwcd/KotlinLanguageServer | ||
|
||
call ale#Set('kotlin_languageserver_executable', 'kotlin-language-server') | ||
|
||
function! ale_linters#kotlin#languageserver#GetExecutable(buffer) abort | ||
return ale#Var(a:buffer, 'kotlin_languageserver_executable') | ||
endfunction | ||
|
||
function! ale_linters#kotlin#languageserver#GetCommand(buffer) abort | ||
let l:executable = ale_linters#kotlin#languageserver#GetExecutable(a:buffer) | ||
return ale#Escape(l:executable) | ||
endfunction | ||
|
||
function! ale_linters#kotlin#languageserver#GetProjectRoot(buffer) abort | ||
let l:gradle_root = ale#gradle#FindProjectRoot(a:buffer) | ||
|
||
if !empty(l:gradle_root) | ||
return l:gradle_root | ||
endif | ||
|
||
let l:maven_pom_file = ale#path#FindNearestFile(a:buffer, 'pom.xml') | ||
|
||
if !empty(l:maven_pom_file) | ||
return fnamemodify(l:maven_pom_file, ':h') | ||
endif | ||
|
||
return '' | ||
endfunction | ||
|
||
call ale#linter#Define('kotlin', { | ||
\ 'name': 'languageserver', | ||
\ 'lsp': 'stdio', | ||
\ 'executable_callback': 'ale_linters#kotlin#languageserver#GetExecutable', | ||
\ 'command_callback': 'ale_linters#kotlin#languageserver#GetCommand', | ||
\ 'language': 'kotlin', | ||
\ 'project_root_callback': 'ale_linters#kotlin#languageserver#GetProjectRoot', | ||
\}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
sources_non_forked/ale/ale_linters/puppet/languageserver.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
" Author: Alexander Olofsson <[email protected]> | ||
" Description: Puppet Language Server integration for ALE | ||
|
||
call ale#Set('puppet_languageserver_executable', 'puppet-languageserver') | ||
|
||
function! ale_linters#puppet#languageserver#GetExecutable(buffer) abort | ||
return ale#Var(a:buffer, 'puppet_languageserver_executable') | ||
endfunction | ||
|
||
function! ale_linters#puppet#languageserver#GetCommand(buffer) abort | ||
let l:exe = ale#Escape(ale_linters#puppet#languageserver#GetExecutable(a:buffer)) | ||
|
||
return l:exe . ' --stdio' | ||
endfunction | ||
|
||
function! ale_linters#puppet#languageserver#GetProjectRoot(buffer) abort | ||
" Note: The metadata.json file is recommended for Puppet 4+ modules, but | ||
" there's no requirement to have it, so fall back to the other possible | ||
" Puppet module directories | ||
let l:root_path = ale#path#FindNearestFile(a:buffer, 'metadata.json') | ||
if !empty(l:root_path) | ||
return fnamemodify(l:root_path, ':h') | ||
endif | ||
|
||
for l:test_path in [ | ||
\ 'manifests', | ||
\ 'templates', | ||
\] | ||
let l:root_path = ale#path#FindNearestDirectory(a:buffer, l:test_path) | ||
if !empty(l:root_path) | ||
return fnamemodify(l:root_path, ':h:h') | ||
endif | ||
endfor | ||
|
||
return '' | ||
endfunction | ||
|
||
call ale#linter#Define('puppet', { | ||
\ 'name': 'languageserver', | ||
\ 'lsp': 'stdio', | ||
\ 'executable_callback': 'ale_linters#puppet#languageserver#GetExecutable', | ||
\ 'command_callback': 'ale_linters#puppet#languageserver#GetCommand', | ||
\ 'language': 'puppet', | ||
\ 'project_root_callback': 'ale_linters#puppet#languageserver#GetProjectRoot', | ||
\}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.