Checking on coc.vim
This commit is contained in:
parent
26fdcc8e58
commit
8ed6faa212
|
@ -40,3 +40,6 @@
|
|||
[pager]
|
||||
branch = false
|
||||
diff = nvim -c 'silent %sm/\\e.\\{-}m//g' -c 'silent %s/^diff/\\r\\rdiff/' -c 'silent set ft=diff' -c 'silent setlocal nobuflisted buftype=nofile bufhidden=wipe noswapfile' -c 'goto 1' -
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = https://github.com/
|
||||
|
|
|
@ -1,2 +1,34 @@
|
|||
let b:ale_fixers = ['mix_format']
|
||||
let g:ale_elixir_elixir_ls_release = '/home/daniel/code/open-source/elixir-ls/release'
|
||||
" let b:ale_fixers = ['mix_format']
|
||||
let b:ale_linters = ['dogma', 'credo', 'dialyxir', 'mix']
|
||||
" let g:ale_elixir_elixir_ls_release = '/Users/danielflanagan/Documents/code/open-source/elixir-ls/'
|
||||
|
||||
let g:elixirls = {
|
||||
\ 'path': printf('%s/%s', stdpath('config'), 'bundle/elixir-ls'),
|
||||
\ }
|
||||
|
||||
let g:elixirls.lsp = printf(
|
||||
\ '%s/%s',
|
||||
\ g:elixirls.path,
|
||||
\ 'release/language_server.sh')
|
||||
|
||||
function! g:elixirls.compile(...)
|
||||
let l:commands = join([
|
||||
\ 'mix local.hex --force',
|
||||
\ 'mix local.rebar --force',
|
||||
\ 'mix deps.get',
|
||||
\ 'mix compile',
|
||||
\ 'mix elixir_ls.release'
|
||||
\ ], '&&')
|
||||
|
||||
echom '>>> Compiling elixirls'
|
||||
silent call system(l:commands)
|
||||
echom '>>> elixirls compiled'
|
||||
endfunction
|
||||
|
||||
call coc#config('languageserver', {
|
||||
\ 'elixir': {
|
||||
\ 'command': g:elixirls.lsp,
|
||||
\ 'trace.server': 'verbose',
|
||||
\ 'filetypes': ['elixir', 'eelixir']
|
||||
\ }
|
||||
\})
|
||||
|
|
|
@ -49,17 +49,17 @@ let g:indent_guide_auto_colors = 1
|
|||
let g:indent_guides_enable_on_vim_startup = 1
|
||||
|
||||
" no ALE gutter
|
||||
let g:ale_sign_column_always = 0
|
||||
let g:ale_set_signs = 0
|
||||
highlight clear ALEErrorSign
|
||||
highlight clear ALEWarningSign
|
||||
" let g:ale_sign_column_always = 0
|
||||
" let g:ale_set_signs = 0
|
||||
" highlight clear ALEErrorSign
|
||||
" highlight clear ALEWarningSign
|
||||
|
||||
" fix me, baby
|
||||
let g:ale_fix_on_save = 1
|
||||
" let g:ale_fix_on_save = 1
|
||||
|
||||
" autocomplete
|
||||
let g:ale_completion_enabled = 1
|
||||
let g:ale_typescript_tslint_use_global = 1
|
||||
" let g:ale_completion_enabled = 1
|
||||
" let g:ale_typescript_tslint_use_global = 1
|
||||
|
||||
let g:fzf_layout = { 'window': 'enew' }
|
||||
|
||||
|
@ -76,7 +76,7 @@ Plug 'junegunn/vim-plug' " plugin manager
|
|||
Plug 'vim-airline/vim-airline' " status line
|
||||
Plug 'vim-airline/vim-airline-themes' " more minimal status line
|
||||
Plug 'nathanaelkane/vim-indent-guides' " indentation guides
|
||||
Plug 'w0rp/ale' " syntax checker
|
||||
" Plug 'w0rp/ale' " syntax checker
|
||||
Plug 'SirVer/ultisnips' " snippet manager
|
||||
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
|
||||
Plug 'junegunn/fzf.vim' " helpers for using fzf in vim
|
||||
|
@ -106,4 +106,6 @@ Plug 'tpope/vim-eunuch' " unix helper co
|
|||
Plug 'sheerun/vim-polyglot' " vim plugin loader for many languages
|
||||
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']} " moonscript language
|
||||
Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']} " C# language
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'} " language server completion
|
||||
Plug 'JakeBecker/elixir-ls', {'for': ['elixir'], 'do': { -> g:elixirls.compile() }}
|
||||
" Plug 'lytedev/elm-vim' " elm lang
|
||||
|
|
Reference in a new issue