Skip to content

Commit

Permalink
update ale, add complete elm configuration for ale and coc
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchuette committed Oct 25, 2021
1 parent e93803e commit ced9366
Show file tree
Hide file tree
Showing 1,822 changed files with 73,531 additions and 4,962 deletions.
26 changes: 21 additions & 5 deletions vim-config/configs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,29 @@ augroup END
"** Plugin Configs **"
"********************"
" Ctags
" -----
" Vim supports ctags natively, but some of the keybindings are awkward by
" default. They are redefined here. Tagbar must be installed separately.
set tags=./tags,tags; " where to look for tags file
nnoremap <leader>ct <C-]>
nnoremap <leader>cT <C-t>
nnoremap <leader>tb :TagbarToggle<CR>
" Tagbar
" ------
let g:tagbar_type_elm = {
\ 'kinds' : [
\ 'f:function:0:0',
\ 'm:modules:0:0',
\ 'i:imports:1:0',
\ 't:types:1:0',
\ 'a:type aliases:0:0',
\ 'c:type constructors:0:0',
\ 'p:ports:0:0',
\ 's:functions:0:0',
\ ]
\}

" Vim-Markdown Configs
" --------------------
" disable automatic folding
Expand Down Expand Up @@ -452,7 +468,7 @@ let g:ale_echo_msg_format = '[%linter%] %s'
let g:ale_lint_on_text_changed = 'never'
let g:ale_lint_on_enter = 1
let g:ale_fix_on_save = 1
let g:ale_completion_enabled = 1
let g:ale_completion_enabled = 0 " we _do not_ want completion with ale but CoC

" enable auto-completion using github.com/maralla/completor.vim
let g:completor_gocode_binary = '~/code/go_src/src/github.com/nsf/gocode/'
Expand Down Expand Up @@ -488,11 +504,11 @@ let g:ale_c_clangtidy_options = '-Wall -Wextra -std=c11 -x c'
let g:ale_c_clangcheck_options = '-- -Wall -Wextra -std=c11 -x c'

let g:ale_elm_ls_use_global = 1
let g:ale_elm_ls_executable = '/usr/local/bin/elm-language-server'
let g:ale_elm_ls_executable = '/usr/bin/elm-language-server'
let g:ale_elm_ls_elm_analyse_trigger = 'change'
let g:ale_elm_ls_elm_path = '/usr/local/bin/elm'
let g:ale_elm_ls_elm_format_path = '/home/daniel/.local/bin/elm-format'
let g:ale_elm_ls_elm_test_path = '/home/daniel/.local/bin/elm-test'
let g:ale_elm_ls_elm_path = '/usr/bin/elm'
let g:ale_elm_ls_elm_format_path = '/usr/bin/elm-format'
let g:ale_elm_ls_elm_test_path = '/usr/bin/elm-test'

let g:ale_glsl_glslang_executable = '/usr/bin/glslangValidator'

Expand Down
12 changes: 0 additions & 12 deletions vim-config/plugins/ale/.netrwhist

This file was deleted.

28 changes: 28 additions & 0 deletions vim-config/plugins/ale/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM testbed/vim:20

RUN install_vim -tag v8.0.0027 -build \
-tag v8.2.2401 -build \
-tag neovim:v0.2.0 -build \
-tag neovim:v0.4.4 -build \
-tag neovim:v0.5.0 -build

ENV PACKAGES="\
bash \
git \
python2 \
python3 \
py3-pip \
grep \
sed \
"
RUN apk --update add $PACKAGES && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*

RUN pip install vim-vint==0.3.21

RUN git clone https://github.com/junegunn/vader.vim vader && \
cd vader && git checkout c6243dd81c98350df4dec608fa972df98fa2a3af

ARG GIT_VERSION
LABEL Version=${GIT_VERSION}
LABEL Name=w0rp/ale
2 changes: 1 addition & 1 deletion vim-config/plugins/ale/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016-2018, w0rp <[email protected]>
Copyright (c) 2016-2020, w0rp <[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading

0 comments on commit ced9366

Please sign in to comment.