mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Update Ale.
This commit is contained in:
5
sources_non_forked/ale/ale_linters/tex/cspell.vim
Normal file
5
sources_non_forked/ale/ale_linters/tex/cspell.vim
Normal file
@ -0,0 +1,5 @@
|
||||
scriptencoding utf-8
|
||||
" Author: David Houston <houstdav000>
|
||||
" Description: cspell support for TeX files.
|
||||
|
||||
call ale#handlers#cspell#DefineLinter('tex')
|
@ -4,6 +4,7 @@
|
||||
|
||||
call ale#Set('tex_texlab_executable', 'texlab')
|
||||
call ale#Set('tex_texlab_options', '')
|
||||
call ale#Set('tex_texlab_config', {})
|
||||
|
||||
function! ale_linters#tex#texlab#GetProjectRoot(buffer) abort
|
||||
let l:git_path = ale#path#FindNearestDirectory(a:buffer, '.git')
|
||||
@ -21,4 +22,5 @@ call ale#linter#Define('tex', {
|
||||
\ 'executable': {b -> ale#Var(b, 'tex_texlab_executable')},
|
||||
\ 'command': function('ale_linters#tex#texlab#GetCommand'),
|
||||
\ 'project_root': function('ale_linters#tex#texlab#GetProjectRoot'),
|
||||
\ 'lsp_config': {b -> ale#Var(b, 'tex_texlab_config')},
|
||||
\})
|
||||
|
Reference in New Issue
Block a user