Updated plugins
This commit is contained in:
parent
bef26975b3
commit
f8e0ea7b78
8 changed files with 138 additions and 0 deletions
18
sources_non_forked/ale/ale_linters/gleam/gleamlsp.vim
Normal file
18
sources_non_forked/ale/ale_linters/gleam/gleamlsp.vim
Normal file
|
@ -0,0 +1,18 @@
|
|||
" Author: Jonathan Palardt https://github.com/jpalardy
|
||||
" Description: Support for Gleam Language Server
|
||||
|
||||
call ale#Set('gleam_gleamlsp_executable', 'gleam')
|
||||
|
||||
function! ale_linters#gleam#gleamlsp#GetProjectRoot(buffer) abort
|
||||
let l:gleam_toml = ale#path#FindNearestFile(a:buffer, 'gleam.toml')
|
||||
|
||||
return !empty(l:gleam_toml) ? fnamemodify(l:gleam_toml, ':p:h') : ''
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('gleam', {
|
||||
\ 'name': 'gleamlsp',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'executable': {buffer -> ale#Var(buffer, 'gleam_gleamlsp_executable')},
|
||||
\ 'command': '%e lsp',
|
||||
\ 'project_root': function('ale_linters#gleam#gleamlsp#GetProjectRoot'),
|
||||
\})
|
17
sources_non_forked/ale/autoload/ale/fixers/biome.vim
Normal file
17
sources_non_forked/ale/autoload/ale/fixers/biome.vim
Normal file
|
@ -0,0 +1,17 @@
|
|||
" Author: Akiomi Kamakura <akiomik@gmail.com>
|
||||
" Description: Fixing files with biome (ex.rome).
|
||||
|
||||
function! ale#fixers#biome#Fix(buffer) abort
|
||||
let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
|
||||
let l:options = ale#Var(a:buffer, 'javascript_biome_options')
|
||||
let l:node = ale#Var(a:buffer, 'javascript_biome_node_executable')
|
||||
|
||||
return {
|
||||
\ 'command': (has('win32') ? (ale#Escape(l:node) . ' ') : '')
|
||||
\ . ale#Escape(l:executable)
|
||||
\ . ' check --apply'
|
||||
\ . ale#Pad(l:options)
|
||||
\ . ' %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
19
sources_non_forked/ale/autoload/ale/fixers/gleam_format.vim
Normal file
19
sources_non_forked/ale/autoload/ale/fixers/gleam_format.vim
Normal file
|
@ -0,0 +1,19 @@
|
|||
" Author: Jonathan Palardt https://github.com/jpalardy
|
||||
" Description: Integration of 'gleam format' with ALE.
|
||||
|
||||
call ale#Set('gleam_format_executable', 'gleam')
|
||||
|
||||
function! ale#fixers#gleam_format#GetExecutable(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'gleam_format_executable')
|
||||
|
||||
return ale#Escape(l:executable)
|
||||
endfunction
|
||||
|
||||
function! ale#fixers#gleam_format#Fix(buffer) abort
|
||||
let l:executable = ale#fixers#gleam_format#GetExecutable(a:buffer)
|
||||
|
||||
return {
|
||||
\ 'command': l:executable . ' format %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
16
sources_non_forked/ale/autoload/ale/fixers/rubyfmt.vim
Normal file
16
sources_non_forked/ale/autoload/ale/fixers/rubyfmt.vim
Normal file
|
@ -0,0 +1,16 @@
|
|||
" Author: Yining <zhang.yining@gmail.com>
|
||||
" Description: support rubyfmt as ALE fixer for Ruby files
|
||||
|
||||
call ale#Set('ruby_rubyfmt_executable', 'rubyfmt')
|
||||
call ale#Set('ruby_rubyfmt_options', '')
|
||||
|
||||
function! ale#fixers#rubyfmt#Fix(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'ruby_rubyfmt_executable')
|
||||
let l:options = ale#Var(a:buffer, 'ruby_rubyfmt_options')
|
||||
|
||||
return {
|
||||
\ 'command': ale#Escape(l:executable)
|
||||
\ . (empty(l:options) ? '' : ' ' . l:options)
|
||||
\}
|
||||
endfunction
|
||||
|
14
sources_non_forked/ale/autoload/ale/handlers/biome.vim
Normal file
14
sources_non_forked/ale/autoload/ale/handlers/biome.vim
Normal file
|
@ -0,0 +1,14 @@
|
|||
" Author: Akiomi Kamakura <akiomik@gmail.com>
|
||||
" Description: Functions for working with biome, for fixing files.
|
||||
|
||||
call ale#Set('javascript_biome_node_executable', 'node.exe')
|
||||
call ale#Set('javascript_biome_executable', 'biome')
|
||||
call ale#Set('javascript_biome_use_global', get(g:, 'ale_use_global_executables', 0))
|
||||
call ale#Set('javascript_biome_options', '')
|
||||
|
||||
function! ale#handlers#biome#GetExecutable(buffer) abort
|
||||
return ale#path#FindExecutable(a:buffer, 'javascript_biome', [
|
||||
\ 'node_modules/.bin/biome',
|
||||
\ 'node_modules/@biomejs/biome/bin/biome',
|
||||
\])
|
||||
endfunction
|
30
sources_non_forked/ale/doc/ale-gleam.txt
Normal file
30
sources_non_forked/ale/doc/ale-gleam.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
===============================================================================
|
||||
ALE Gleam Integration *ale-gleam-options*
|
||||
*ale-integration-gleam*
|
||||
|
||||
|
||||
===============================================================================
|
||||
gleam_format *ale-gleam-gleam_format*
|
||||
|
||||
g:ale_gleam_gleam_format_executable *g:ale_gleam_gleam_format_executable*
|
||||
*b:ale_gleam_gleam_format_executable*
|
||||
Type: |String|
|
||||
Default: `'gleam'`
|
||||
|
||||
This variable can be modified to change the executable path for
|
||||
`gleam format`.
|
||||
|
||||
|
||||
===============================================================================
|
||||
gleamlsp *ale-gleam-gleamlsp*
|
||||
|
||||
g:ale_gleam_gleamlsp_executable *g:ale_gleam_gleamlsp_executable*
|
||||
*b:ale_gleam_gleamlsp_executable*
|
||||
Type: |String|
|
||||
Default: `'gleam'`
|
||||
|
||||
This variable can be modified to change the executable path for `gleamlsp`.
|
||||
|
||||
|
||||
===============================================================================
|
||||
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|
|
@ -0,0 +1,3 @@
|
|||
function! copilot#version#String() abort
|
||||
return '1.18.0'
|
||||
endfunction
|
21
sources_non_forked/vim-indent-object/LICENSE
Normal file
21
sources_non_forked/vim-indent-object/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2024 Michael Smith
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
Loading…
Reference in a new issue