1
0
Fork 0
mirror of synced 2024-11-12 20:28:58 -05:00
This commit is contained in:
geezus 2021-06-30 12:00:07 -05:00
parent 43c7efba8d
commit 3afe70fe5a
1529 changed files with 3053 additions and 3018 deletions

0
LICENSE Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
my_configs.vim Normal file → Executable file
View file

0
my_inits/init_Win10.vim Normal file → Executable file
View file

View file

@ -1 +1 @@
Subproject commit 5f4c18f73265b0c574dc9954e7d82cb21d7d6a40
Subproject commit 6beab4410c755306484f037bc0dbca4890785830

@ -1 +1 @@
Subproject commit aebef2c2e76b88384b1121c237c965e8cf8b3bcb
Subproject commit 4c10562d2cc9b084518284c49a158558da5180a7

0
sources_forked/peaksea/colors/peaksea.vim Normal file → Executable file
View file

0
sources_forked/set_tabline/plugin/set_tabline.vim Normal file → Executable file
View file

0
sources_forked/vim-irblack-forked/README Normal file → Executable file
View file

0
sources_forked/vim-irblack-forked/colors/ir_black.vim Normal file → Executable file
View file

0
sources_forked/vim-peepopen/README Normal file → Executable file
View file

0
sources_forked/vim-peepopen/README.md Normal file → Executable file
View file

0
sources_forked/vim-peepopen/plugin/peepopen.vim Normal file → Executable file
View file

0
sources_non_forked/ack.vim/.gitignore vendored Normal file → Executable file
View file

0
sources_non_forked/ack.vim/LICENSE Normal file → Executable file
View file

0
sources_non_forked/ack.vim/README.md Normal file → Executable file
View file

0
sources_non_forked/ack.vim/autoload/ack.vim Normal file → Executable file
View file

0
sources_non_forked/ack.vim/doc/ack.txt Normal file → Executable file
View file

0
sources_non_forked/ack.vim/doc/ack_quick_help.txt Normal file → Executable file
View file

0
sources_non_forked/ack.vim/ftplugin/qf.vim Normal file → Executable file
View file

0
sources_non_forked/ack.vim/plugin/ack.vim Normal file → Executable file
View file

0
sources_non_forked/ale/LICENSE Normal file → Executable file
View file

View file

@ -0,0 +1,26 @@
" Author: Bartek Jasicki http://github.com/thindil
" Description: Support for Ada Language Server
call ale#Set('ada_adals_executable', 'ada_language_server')
call ale#Set('ada_adals_project', 'default.gpr')
call ale#Set('ada_adals_encoding', 'utf-8')
function! ale_linters#ada#adals#GetAdaLSConfig(buffer) abort
return {
\ 'ada.projectFile': ale#Var(a:buffer, 'ada_adals_project'),
\ 'ada.defaultCharset': ale#Var(a:buffer, 'ada_adals_encoding')
\}
endfunction
function! ale_linters#ada#adals#GetRootDirectory(buffer) abort
return fnamemodify(bufname(a:buffer), ':p:h')
endfunction
call ale#linter#Define('ada', {
\ 'name': 'adals',
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'ada_adals_executable')},
\ 'command': '%e',
\ 'project_root': function('ale_linters#ada#adals#GetRootDirectory'),
\ 'lsp_config': function('ale_linters#ada#adals#GetAdaLSConfig')
\})

0
sources_non_forked/ale/ale_linters/ada/gcc.vim Normal file → Executable file
View file

View file

View file

View file

@ -0,0 +1,12 @@
" Author: Leo <thinkabit.ukim@gmail.com>
" Description: apkbuild-lint from atools linter for APKBUILDs
call ale#Set('apkbuild_apkbuild_lint_executable', 'apkbuild-lint')
call ale#linter#Define('apkbuild', {
\ 'name': 'apkbuild_lint',
\ 'output_stream': 'stdout',
\ 'executable': {b -> ale#Var(b, 'apkbuild_apkbuild_lint_executable')},
\ 'command': '%e %t',
\ 'callback': 'ale#handlers#atools#Handle',
\})

View file

@ -0,0 +1,12 @@
" Author: Leo <thinkabit.ukim@gmail.com>
" Description: secfixes-check from atools linter for APKBUILDs
call ale#Set('apkbuild_secfixes_check_executable', 'secfixes-check')
call ale#linter#Define('apkbuild', {
\ 'name': 'secfixes_check',
\ 'output_stream': 'stdout',
\ 'executable': {b -> ale#Var(b, 'apkbuild_secfixes_check_executable')},
\ 'command': '%e %t',
\ 'callback': 'ale#handlers#atools#Handle',
\})

0
sources_non_forked/ale/ale_linters/asciidoc/alex.vim Normal file → Executable file
View file

View file

View file

0
sources_non_forked/ale/ale_linters/asciidoc/redpen.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/asciidoc/vale.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/asm/gcc.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/awk/gawk.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/bats/shellcheck.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/bib/bibclean.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/c/cc.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/c/ccls.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/c/clangd.vim Normal file → Executable file
View file

3
sources_non_forked/ale/ale_linters/c/clangtidy.vim Normal file → Executable file
View file

@ -34,9 +34,6 @@ function! ale_linters#c#clangtidy#GetCommand(buffer, output) abort
" Get the options to pass directly to clang-tidy
let l:extra_options = ale#Var(a:buffer, 'c_clangtidy_extra_options')
" Get the options to pass directly to clang-tidy
let l:extra_options = ale#Var(a:buffer, 'c_clangtidy_extra_options')
return '%e'
\ . (!empty(l:checks) ? ' -checks=' . ale#Escape(l:checks) : '')
\ . (!empty(l:extra_options) ? ' ' . ale#Escape(l:extra_options) : '')

2
sources_non_forked/ale/ale_linters/c/cppcheck.vim Normal file → Executable file
View file

@ -10,7 +10,7 @@ function! ale_linters#c#cppcheck#GetCommand(buffer) abort
let l:buffer_path_include = empty(l:compile_commands_option)
\ ? ale#handlers#cppcheck#GetBufferPathIncludeOptions(a:buffer)
\ : ''
let l:template = ' --template=''{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}'''
let l:template = ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}')
return l:cd_command
\ . '%e -q --language=c'

0
sources_non_forked/ale/ale_linters/c/cquery.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/c/flawfinder.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/chef/cookstyle.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/chef/foodcritic.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/clojure/joker.vim Normal file → Executable file
View file

View file

@ -29,6 +29,7 @@ endfunction
call ale#linter#Define('cloudformation', {
\ 'name': 'cloudformation',
\ 'aliases': ['cfn-lint'],
\ 'executable': 'cfn-lint',
\ 'command': 'cfn-lint --template %t --format parseable',
\ 'callback': 'ale_linters#cloudformation#cfn_python_lint#Handle',

0
sources_non_forked/ale/ale_linters/cmake/cmakelint.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/coffee/coffee.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/cpp/cc.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cpp/ccls.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cpp/clangcheck.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cpp/clangd.vim Normal file → Executable file
View file

13
sources_non_forked/ale/ale_linters/cpp/clangtidy.vim Normal file → Executable file
View file

@ -23,19 +23,18 @@ function! ale_linters#cpp#clangtidy#GetCommand(buffer, output) abort
let l:options = ale#Var(a:buffer, 'cpp_clangtidy_options')
let l:cflags = ale#c#GetCFlags(a:buffer, a:output)
let l:options .= !empty(l:options) ? ale#Pad(l:cflags) : l:cflags
endif
" Tell clang-tidy a .h header with a C++ filetype in Vim is a C++ file.
if expand('#' . a:buffer) =~# '\.h$'
let l:options .= !empty(l:options) ? ' -x c++' : '-x c++'
" Tell clang-tidy a .h header with a C++ filetype in Vim is a C++ file
" only when compile-commands.json file is not there. Adding these
" flags makes clang-tidy completely ignore compile commmands.
if expand('#' . a:buffer) =~# '\.h$'
let l:options .= !empty(l:options) ? ' -x c++' : '-x c++'
endif
endif
" Get the options to pass directly to clang-tidy
let l:extra_options = ale#Var(a:buffer, 'cpp_clangtidy_extra_options')
" Get the options to pass directly to clang-tidy
let l:extra_options = ale#Var(a:buffer, 'cpp_clangtidy_extra_options')
return '%e'
\ . (!empty(l:checks) ? ' -checks=' . ale#Escape(l:checks) : '')
\ . (!empty(l:extra_options) ? ' ' . ale#Escape(l:extra_options) : '')

0
sources_non_forked/ale/ale_linters/cpp/clazy.vim Normal file → Executable file
View file

2
sources_non_forked/ale/ale_linters/cpp/cppcheck.vim Normal file → Executable file
View file

@ -10,7 +10,7 @@ function! ale_linters#cpp#cppcheck#GetCommand(buffer) abort
let l:buffer_path_include = empty(l:compile_commands_option)
\ ? ale#handlers#cppcheck#GetBufferPathIncludeOptions(a:buffer)
\ : ''
let l:template = ' --template=''{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}'''
let l:template = ' --template=' . ale#Escape('{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}')
return l:cd_command
\ . '%e -q --language=c++'

0
sources_non_forked/ale/ale_linters/cpp/cpplint.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cpp/cquery.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cpp/flawfinder.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/crystal/ameba.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/crystal/crystal.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cs/csc.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cs/mcs.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/cs/mcsc.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/css/csslint.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/css/fecs.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/css/stylelint.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/cuda/nvcc.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/d/dls.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/d/dmd.vim Normal file → Executable file
View file

19
sources_non_forked/ale/ale_linters/dafny/dafny.vim Normal file → Executable file
View file

@ -6,7 +6,7 @@ function! ale_linters#dafny#dafny#Handle(buffer, lines) abort
for l:match in ale#util#GetMatches(a:lines, l:pattern)
call add(l:output, {
\ 'bufnr': a:buffer,
\ 'filename': l:match[1],
\ 'col': l:match[3] + 0,
\ 'lnum': l:match[2] + 0,
\ 'text': l:match[5],
@ -14,13 +14,28 @@ function! ale_linters#dafny#dafny#Handle(buffer, lines) abort
\ })
endfor
for l:match in ale#util#GetMatches(a:lines, '\v(.*)\((\d+),(\d+)\): (Verification of .{-} timed out after \d+ seconds)')
call add(l:output, {
\ 'filename': l:match[1],
\ 'col': l:match[3] + 0,
\ 'lnum': l:match[2] + 0,
\ 'text': l:match[4],
\ 'type': 'E',
\ })
endfor
return l:output
endfunction
function! ale_linters#dafny#dafny#GetCommand(buffer) abort
return printf('dafny %%s /compile:0 /timeLimit:%d', ale#Var(a:buffer, 'dafny_dafny_timelimit'))
endfunction
call ale#Set('dafny_dafny_timelimit', 10)
call ale#linter#Define('dafny', {
\ 'name': 'dafny',
\ 'executable': 'dafny',
\ 'command': 'dafny %s /compile:0',
\ 'command': function('ale_linters#dafny#dafny#GetCommand'),
\ 'callback': 'ale_linters#dafny#dafny#Handle',
\ 'lint_file': 1,
\ })

View file

@ -0,0 +1,29 @@
" Author: Nelson Yeung <nelsyeung@gmail.com>
" Description: Check Dart files with dart analysis server LSP
call ale#Set('dart_analysis_server_executable', 'dart')
function! ale_linters#dart#analysis_server#GetProjectRoot(buffer) abort
" Note: pub only looks for pubspec.yaml, there's no point in adding
" support for pubspec.yml
let l:pubspec = ale#path#FindNearestFile(a:buffer, 'pubspec.yaml')
return !empty(l:pubspec) ? fnamemodify(l:pubspec, ':h:h') : '.'
endfunction
function! ale_linters#dart#analysis_server#GetCommand(buffer) abort
let l:executable = ale#Var(a:buffer, 'dart_analysis_server_executable')
let l:dart = resolve(exepath(l:executable))
return '%e '
\ . fnamemodify(l:dart, ':h') . '/snapshots/analysis_server.dart.snapshot'
\ . ' --lsp'
endfunction
call ale#linter#Define('dart', {
\ 'name': 'analysis_server',
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'dart_analysis_server_executable')},
\ 'command': function('ale_linters#dart#analysis_server#GetCommand'),
\ 'project_root': function('ale_linters#dart#analysis_server#GetProjectRoot'),
\})

View file

View file

View file

View file

@ -9,7 +9,7 @@ function! ale_linters#dockerfile#hadolint#Handle(buffer, lines) abort
"
" /dev/stdin:19 DL3001 Pipe chain should start with a raw value.
" /dev/stdin:19:3 unexpected thing
let l:pattern = '\v^/dev/stdin:(\d+):?(\d+)? ((DL|SC)(\d+) )?(.+)$'
let l:pattern = '\v^/dev/stdin:(\d+):?(\d+)? ((DL|SC)(\d+) )?((.+)?: )?(.+)$'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)
@ -24,9 +24,19 @@ function! ale_linters#dockerfile#hadolint#Handle(buffer, lines) abort
let l:colnum = l:match[2] + 0
endif
let l:type = 'W'
let l:text = l:match[6]
let l:detail = l:match[6]
" Shellcheck knows a 'style' severity - pin it to info level as well.
if l:match[7] is# 'style'
let l:type = 'I'
elseif l:match[7] is# 'info'
let l:type = 'I'
elseif l:match[7] is# 'warning'
let l:type = 'W'
else
let l:type = 'E'
endif
let l:text = l:match[8]
let l:detail = l:match[8]
let l:domain = 'https://github.com/hadolint/hadolint/wiki/'
if l:match[4] is# 'SC'

11
sources_non_forked/ale/ale_linters/elixir/credo.vim Normal file → Executable file
View file

@ -45,6 +45,16 @@ function! ale_linters#elixir#credo#GetMode() abort
endif
endfunction
function! ale_linters#elixir#credo#GetConfigFile() abort
let l:config_file = get(g:, 'ale_elixir_credo_config_file', '')
if empty(l:config_file)
return ''
endif
return ' --config-file ' . l:config_file
endfunction
function! ale_linters#elixir#credo#GetCommand(buffer) abort
let l:project_root = ale#handlers#elixir#FindMixUmbrellaRoot(a:buffer)
let l:mode = ale_linters#elixir#credo#GetMode()
@ -52,6 +62,7 @@ function! ale_linters#elixir#credo#GetCommand(buffer) abort
return ale#path#CdString(l:project_root)
\ . 'mix help credo && '
\ . 'mix credo ' . ale_linters#elixir#credo#GetMode()
\ . ale_linters#elixir#credo#GetConfigFile()
\ . ' --format=flycheck --read-from-stdin %s'
endfunction

0
sources_non_forked/ale/ale_linters/elixir/dialyxir.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/elixir/dogma.vim Normal file → Executable file
View file

View file

0
sources_non_forked/ale/ale_linters/elixir/mix.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/elm/elm_ls.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/elm/make.vim Normal file → Executable file
View file

19
sources_non_forked/ale/ale_linters/erlang/dialyzer.vim Normal file → Executable file
View file

@ -3,6 +3,11 @@
let g:ale_erlang_dialyzer_executable =
\ get(g:, 'ale_erlang_dialyzer_executable', 'dialyzer')
let g:ale_erlang_dialyzer_options =
\ get(g:, 'ale_erlang_dialyzer_options', '-Wunmatched_returns'
\ . ' -Werror_handling'
\ . ' -Wrace_conditions'
\ . ' -Wunderspecs')
let g:ale_erlang_dialyzer_plt_file =
\ get(g:, 'ale_erlang_dialyzer_plt_file', '')
let g:ale_erlang_dialyzer_rebar3_profile =
@ -15,17 +20,10 @@ endfunction
function! ale_linters#erlang#dialyzer#FindPlt(buffer) abort
let l:plt_file = ''
let l:rebar3_profile = ale_linters#erlang#dialyzer#GetRebar3Profile(a:buffer)
<<<<<<< HEAD
let l:plt_file_directory = ale#path#FindNearestDirectory(a:buffer, '_build' . l:rebar3_profile)
if !empty(l:plt_file_directory)
let l:plt_file = split(globpath(l:plt_file_directory, '/*_plt'), '\n')
=======
let l:plt_file_directory = ale#path#FindNearestDirectory(a:buffer, '_build/' . l:rebar3_profile)
if !empty(l:plt_file_directory)
let l:plt_file = globpath(l:plt_file_directory, '*_plt', 0, 1)
>>>>>>> 27ad0d07862847896f691309a544a206783c94d6
endif
if !empty(l:plt_file)
@ -54,13 +52,12 @@ function! ale_linters#erlang#dialyzer#GetExecutable(buffer) abort
endfunction
function! ale_linters#erlang#dialyzer#GetCommand(buffer) abort
let l:options = ale#Var(a:buffer, 'erlang_dialyzer_options')
let l:command = ale#Escape(ale_linters#erlang#dialyzer#GetExecutable(a:buffer))
\ . ' -n'
\ . ' --plt ' . ale#Escape(ale_linters#erlang#dialyzer#GetPlt(a:buffer))
\ . ' -Wunmatched_returns'
\ . ' -Werror_handling'
\ . ' -Wrace_conditions'
\ . ' -Wunderspecs'
\ . ' ' . l:options
\ . ' %s'
return l:command

0
sources_non_forked/ale/ale_linters/erlang/elvis.vim Normal file → Executable file
View file

16
sources_non_forked/ale/ale_linters/erlang/erlc.vim Normal file → Executable file
View file

@ -1,14 +1,22 @@
" Author: Magnus Ottenklinger - https://github.com/evnu
let g:ale_erlang_erlc_executable = get(g:, 'ale_erlang_erlc_executable', 'erlc')
let g:ale_erlang_erlc_options = get(g:, 'ale_erlang_erlc_options', '')
function! ale_linters#erlang#erlc#GetExecutable(buffer) abort
return ale#Var(a:buffer, 'erlang_erlc_executable')
endfunction
function! ale_linters#erlang#erlc#GetCommand(buffer) abort
let l:output_file = ale#util#Tempname()
call ale#command#ManageFile(a:buffer, l:output_file)
return 'erlc -o ' . ale#Escape(l:output_file)
\ . ' ' . ale#Var(a:buffer, 'erlang_erlc_options')
\ . ' %t'
let l:command = ale#Escape(ale_linters#erlang#erlc#GetExecutable(a:buffer))
\ . ' -o ' . ale#Escape(l:output_file)
\ . ' ' . ale#Var(a:buffer, 'erlang_erlc_options')
\ . ' %t'
return l:command
endfunction
function! ale_linters#erlang#erlc#Handle(buffer, lines) abort
@ -90,7 +98,7 @@ endfunction
call ale#linter#Define('erlang', {
\ 'name': 'erlc',
\ 'executable': 'erlc',
\ 'executable': function('ale_linters#erlang#erlc#GetExecutable'),
\ 'command': function('ale_linters#erlang#erlc#GetCommand'),
\ 'callback': 'ale_linters#erlang#erlc#Handle',
\})

View file

0
sources_non_forked/ale/ale_linters/eruby/erb.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/eruby/erubi.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/eruby/erubis.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/eruby/ruumba.vim Normal file → Executable file
View file

0
sources_non_forked/ale/ale_linters/fish/fish.vim Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more