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
1 changed files with 5 additions and 1 deletions

View File

@ -140,7 +140,7 @@ call plug#begin('~/.config/nvim/plugged')
call plug#end()
" 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()
@ -341,6 +341,10 @@ map <F4> :setlocal spell! spelllang=pl<CR>
" Ansible
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
autocmd BufWritePre *.yml :Prettier <CR>
let g:coc_filetype_map = {
\ 'yaml.ansible': 'ansible',
\ }
" Bash
autocmd FileType sh