aboutsummaryrefslogtreecommitdiffstats
path: root/projects/aodocs.vim
diff options
context:
space:
mode:
Diffstat (limited to 'projects/aodocs.vim')
-rw-r--r--projects/aodocs.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/aodocs.vim b/projects/aodocs.vim
index 11e6721..c72272a 100644
--- a/projects/aodocs.vim
+++ b/projects/aodocs.vim
@@ -11,6 +11,9 @@ augroup AODocs
\ setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2
\ formatoptions+=cro
+ autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AODOCS/*.js
+ \ call s:ESLintAddMappings()
+
autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AODOCS/*.json
\ setlocal expandtab tabstop=4 softtabstop=4 shiftwidth=4
@@ -53,3 +56,9 @@ function! s:UFOCacheSyncClientAddMappings()
nnoremap <buffer> <leader>ud :silent !ufo-cache-syncclient rm<CR><C-l>
nnoremap <buffer> <leader>ur :silent !ufo-cache-syncclient rebuild<CR><C-l>
endfunction
+
+
+function! s:ESLintAddMappings()
+ nnoremap <buffer> <leader>eda :silent !eslint-yes-debugger.sh -a<CR> <Bar> :redraw!<CR>
+ nnoremap <buffer> <leader>edd :silent !eslint-yes-debugger.sh -d<CR> <Bar> :redraw!<CR>
+endfunction