e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
16 lines
488 B
VimL
16 lines
488 B
VimL
" Author: jD91mZM2 <me@krake.one>
|
|
" Description: rnix-lsp language client
|
|
|
|
function! ale_linters#nix#rnix_lsp#GetProjectRoot(buffer) abort
|
|
" rnix-lsp does not yet use the project root, so getting it right is not
|
|
" important
|
|
return fnamemodify(a:buffer, ':h')
|
|
endfunction
|
|
|
|
call ale#linter#Define('nix', {
|
|
\ 'name': 'rnix_lsp',
|
|
\ 'lsp': 'stdio',
|
|
\ 'executable': 'rnix-lsp',
|
|
\ 'command': '%e',
|
|
\ 'project_root': function('ale_linters#nix#rnix_lsp#GetProjectRoot'),
|
|
\})
|