Skip to content

Commit

Permalink
feat(elixir): add Next LS
Browse files Browse the repository at this point in the history
Next LS is a new language server for Elixir

Homepage: https://www.elixir-tools.dev/next-ls
GitHub: https://github.com/elixir-tools/next-ls
  • Loading branch information
mhanberg committed Oct 5, 2023
1 parent 53b01d6 commit 7c82db1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ale_linters/elixir/next_ls.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
" Author: Mitchell Hanberg <[email protected]>
" Description: Next LS (https://github.com/elixir-tools/next-ls)

call ale#Set('elixir_next_ls_executable', 'nextls')
call ale#Set('elixir_next_ls_options', '--stdio')

function! ale_linters#elixir#next_ls#GetCommand(buffer) abort
return '%e' . ale#Pad(ale#Var(a:buffer, 'elixir_next_ls_options'))
endfunction

call ale#linter#Define('elixir', {
\ 'name': 'next_ls',
\ 'lsp': 'stdio',
\ 'executable': {b -> ale#Var(b, 'elixir_next_ls_executable')},
\ 'command': function('ale_linters#elixir#next_ls#GetCommand'),
\ 'project_root': function('ale#handlers#elixir#FindMixUmbrellaRoot'),
\})

0 comments on commit 7c82db1

Please sign in to comment.