update vim conf (esp. coc, ale and minisnip)

This commit is contained in:
Bruno Carlin 2019-12-03 10:56:42 +01:00
parent bbd0c7e8c0
commit af4dd514bd
5 changed files with 32 additions and 3 deletions

View file

@ -0,0 +1,9 @@
{
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"]
}
}
}

View file

@ -0,0 +1,3 @@
Convey("{{++}}", func() {
{{++}}
})

View file

@ -0,0 +1 @@
So({{++}}, ShouldEqual, {{++}})

View file

@ -0,0 +1 @@
So({{++}}, ShouldBeNil)

View file

@ -138,7 +138,17 @@ autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=black
" ALE options
let g:ale_completion_enabled = 0
let g:ale_linters = {
\ 'go': ['gofmt', 'golint', 'golangci-lint']
\}
let g:ale_go_golangci_lint_options = '--enable-all --disable unused'
let g:ale_fix_on_save = 0
let g:ale_sign_error = '🔴'
let g:ale_sign_info = '🔵'
let g:ale_sign_warning = '🟡'
" Minisnip options
let g:minisnip_trigger = '<C-w>'
call plug#begin('~/.vim/plugged')
@ -160,9 +170,13 @@ call plug#begin('~/.vim/plugged')
Plug 'ollykel/v-vim'
Plug 'liuchengxu/vim-clap'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dense-analysis/ale'
Plug 'joereynolds/vim-minisnip'
Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': 'yarn install --frozen-lockfile'}
Plug 'nullvoxpopuli/coc-ember', {'do': 'yarn install --frozen-lockfile'}
Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
Plug 'neoclide/coc-html', {'do': 'yarn install --frozen-lockfile'}
Plug 'neoclide/coc-css', {'do': 'yarn install --frozen-lockfile'}
Plug 'aklt/plantuml-syntax'
Plug 'scrooloose/vim-slumlord'
@ -206,8 +220,9 @@ endfunction
nmap <C-p> :Clap files<CR>
nmap <C-p>b :Clap buffers<CR>
nmap <C-p>r :Clap grep<CR>
imap <C-w> <Plug>(minisnip)
nmap <leader>MM :tabnew \| MagitOnly<CR>
if has("autocmd")
autocmd FileType go nmap <leader>b <Plug>(go-build)