Add elixir configs
This commit is contained in:
parent
2461440c3a
commit
22d2a5a00b
|
@ -1,19 +1,20 @@
|
|||
""" ALE configuration
|
||||
|
||||
let s:user_dir = has('win32') ? expand('~/vimfiles') : expand('~/.vim')
|
||||
let g:ale_completion_enabled = 0
|
||||
let g:ale_sign_error = '->'
|
||||
let g:ale_sign_warning = '~>'
|
||||
" let g:ale_sign_error = '✘'
|
||||
" let g:ale_sign_warning = '⚠'
|
||||
|
||||
let g:ale_elixir_elixir_ls_release = '/usr/lib/elixir-ls/'
|
||||
let g:ale_elixir_elixir_ls_release = s:user_dir . './pack/vendor/start/vim-elixirls/elixir-ls/release'
|
||||
|
||||
let g:ale_linters = {
|
||||
\ 'javascript': ['eslint'],
|
||||
\ 'typescript': ['tsserver', 'tslint'],
|
||||
\ 'python': ['pyls', 'pylint'],
|
||||
\ 'rust': ['rls'],
|
||||
\ 'elixir': ['elixir-ls'],
|
||||
\ 'elixir': ['credo', 'elixir-ls'],
|
||||
\ 'go': ['gopls'],
|
||||
\ 'json': ['jsonlint'],
|
||||
\ 'dockerfile': ['hadolint'],
|
||||
|
|
|
@ -9,9 +9,11 @@ set hidden
|
|||
" \ 'ruby': ['~/.rbenv/shims/solargraph', 'stdio'],
|
||||
" \ }
|
||||
|
||||
let s:user_dir = has('win32') ? expand('~/vimfiles') : expand('~/.vim')
|
||||
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls'],
|
||||
\ 'elixir': ['/usr/lib/elixir-ls/language_server.sh'],
|
||||
\ 'elixir': [ s:user_dir . '/pack/vendor/start/vim-elixirls/elixir-ls/release/language_server.sh'],
|
||||
\ 'elm': ['/usr/bin/elm-language-server'],
|
||||
\ 'python': ['/usr/bin/pyls'],
|
||||
\ 'go': ['/usr/bin/gopls'],
|
||||
|
@ -19,6 +21,7 @@ let g:LanguageClient_serverCommands = {
|
|||
|
||||
let g:LanguageClient_rootMarkers = {
|
||||
\ 'elm': ['elm.json'],
|
||||
\ 'elixir': ['mix.exs'],
|
||||
\ }
|
||||
|
||||
" note that if you are using Plug mapping you should not use `noremap` mappings.
|
||||
|
|
Loading…
Reference in New Issue
Block a user