Skip to content

Commit

Permalink
fix: fix ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnj committed Jul 29, 2023
1 parent e4eb1f2 commit 11285f6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 3 additions & 1 deletion ale_linters/markdown/marksman.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ endfunction
function! ale_linters#markdown#marksman#GetProjectRoot(buffer) abort
" Find nearest .marksman.toml
let l:marksman_toml = ale#path#FindNearestFile(a:buffer, '.marksman.toml')

if !empty(l:marksman_toml)
return fnamemodify(l:marksman_toml, ':h')
endif

" Find nearest .git/ directory
let l:project_root = finddir('.git/..', expand('%:p:h')..';')
let l:project_root = finddir('.git/..', expand('#' . a:buffer . '...').';')

if !empty(l:project_root)
return l:project_root
endif
Expand Down
22 changes: 11 additions & 11 deletions doc/ale-markdown.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ dprint *ale-markdown-dprint*
See |ale-dprint-options| and https://dprint.dev/plugins/markdown


===============================================================================
marksman *ale-markdown-marksman*

g:ale_markdown_marksman_executable *g:ale_markdown_marksman_executable*
*b:ale_markdown_marksman_executable*
Type: |String|
Default: `'marksman'`

Override the invoked `marksman` binary.


===============================================================================
markdownlint *ale-markdown-markdownlint*

Expand All @@ -45,6 +34,17 @@ g:ale_markdown_markdownlint_options *g:ale_markdown_markdownlint_options*
This variable can be set to pass additional options to markdownlint.


===============================================================================
marksman *ale-markdown-marksman*

g:ale_markdown_marksman_executable *g:ale_markdown_marksman_executable*
*b:ale_markdown_marksman_executable*
Type: |String|
Default: `'marksman'`

Override the invoked `marksman` binary.


===============================================================================
mdl *ale-markdown-mdl*

Expand Down
1 change: 1 addition & 0 deletions doc/ale-supported-languages-and-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ Notes:
* `cspell`
* `languagetool`!!
* `markdownlint`!!
* marksman
* `mdl`
* `pandoc`
* `prettier`
Expand Down

0 comments on commit 11285f6

Please sign in to comment.