Added coc-ansible (ansible-lint)

This commit is contained in:
Marcin Woźniak 2022-01-09 01:57:13 +01:00
parent 7345373b74
commit 4acd37269e
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -140,7 +140,7 @@ call plug#begin('~/.config/nvim/plugged')
call plug#end() call plug#end()
" Coc " Coc
let g:coc_global_extensions = ['coc-solargraph', 'coc-go', 'coc-yaml', 'coc-pyright', 'coc-json' , 'coc-markdownlint' , 'coc-sh', 'coc-prettier', 'coc-diagnostic', 'coc-perl'] let g:coc_global_extensions = ['@yaegassy/coc-ansible', 'coc-solargraph', 'coc-go', 'coc-yaml', 'coc-pyright', 'coc-json' , 'coc-markdownlint' , 'coc-sh', 'coc-prettier', 'coc-diagnostic', 'coc-perl']
inoremap <silent><expr> <Nul> coc#refresh() inoremap <silent><expr> <Nul> coc#refresh()
@ -341,6 +341,10 @@ map <F4> :setlocal spell! spelllang=pl<CR>
" Ansible " Ansible
au BufRead,BufNewFile *.yml set filetype=yaml.ansible au BufRead,BufNewFile *.yml set filetype=yaml.ansible
autocmd BufWritePre *.yml :Prettier <CR>
let g:coc_filetype_map = {
\ 'yaml.ansible': 'ansible',
\ }
" Bash " Bash
autocmd FileType sh autocmd FileType sh