|
@ -1,14 +1,15 @@ |
|
|
let b:ale_fixers = {} |
|
|
let b:ale_fixers = {} |
|
|
let b:ale_fixers['javascript'] = ['eslint'] |
|
|
|
|
|
let b:ale_fixers['typescript'] = ['eslint'] |
|
|
|
|
|
|
|
|
let b:ale_fixers['javascript'] = ['prettier'] |
|
|
|
|
|
let b:ale_fixers['typescript'] = ['prettier'] |
|
|
let b:ale_fixers['json'] = ['eslint'] |
|
|
let b:ale_fixers['json'] = ['eslint'] |
|
|
let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 2' |
|
|
|
|
|
let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 2' |
|
|
|
|
|
|
|
|
"let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 2' |
|
|
|
|
|
"let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 2' |
|
|
let b:ale_fixers['vue'] = ['prettier'] |
|
|
let b:ale_fixers['vue'] = ['prettier'] |
|
|
let b:ale_vue_prettier_options = '--no-semi --single-quote' |
|
|
let b:ale_vue_prettier_options = '--no-semi --single-quote' |
|
|
let b:ale_fix_on_save = 1 |
|
|
let b:ale_fix_on_save = 1 |
|
|
let b:ale_javascript_prettier_use_local_config = 1 |
|
|
let b:ale_javascript_prettier_use_local_config = 1 |
|
|
let b:ale_typescript_prettier_use_local_config = 1 |
|
|
let b:ale_typescript_prettier_use_local_config = 1 |
|
|
|
|
|
let b:ale_fix_on_save = 0 |
|
|
" config for local eslint |
|
|
" config for local eslint |
|
|
g:ale_javascript_eslint_use_global = 1 |
|
|
g:ale_javascript_eslint_use_global = 1 |
|
|
g:ale_javascript_eslint_executable = 'yarn' |
|
|
g:ale_javascript_eslint_executable = 'yarn' |
|
@ -21,6 +22,7 @@ g:ale_json_eslint_executable = 'yarn' |
|
|
g:ale_json_eslint_options = 'run eslint' |
|
|
g:ale_json_eslint_options = 'run eslint' |
|
|
|
|
|
|
|
|
let g:jsdoc_formatter = 'tsdoc' |
|
|
let g:jsdoc_formatter = 'tsdoc' |
|
|
|
|
|
let g:jsdoc_lehre_path = '/home/schneider/.yarn/bin/lehre' |
|
|
|
|
|
|
|
|
"autocmd bufwritepost *.js silent !standard --fix % |
|
|
"autocmd bufwritepost *.js silent !standard --fix % |
|
|
setlocal wildignore+=node_modules |
|
|
setlocal wildignore+=node_modules |
|
@ -29,6 +31,33 @@ setlocal tabstop=4 |
|
|
setlocal shiftwidth=4 |
|
|
setlocal shiftwidth=4 |
|
|
|
|
|
|
|
|
" Create jsdoc with ,h |
|
|
" Create jsdoc with ,h |
|
|
nnoremap <leader>h :JsDoc<CR> |
|
|
|
|
|
|
|
|
nnoremap <leader><C-i> :JsDoc<CR> |
|
|
nnoremap <F8> Biawait <ESC>A |
|
|
nnoremap <F8> Biawait <ESC>A |
|
|
nnoremap <F2> :Prettier<CR> |
|
|
nnoremap <F2> :Prettier<CR> |
|
|
|
|
|
|
|
|
|
|
|
lua <<EOF |
|
|
|
|
|
require'nvim-treesitter.configs'.setup { |
|
|
|
|
|
textobjects = { |
|
|
|
|
|
move = { |
|
|
|
|
|
enable = true, |
|
|
|
|
|
set_jumps = true, -- whether to set jumps in the jumplist |
|
|
|
|
|
goto_next_start = { |
|
|
|
|
|
["]m"] = "@function.outer", |
|
|
|
|
|
["]]"] = "@class.outer", |
|
|
|
|
|
}, |
|
|
|
|
|
goto_next_end = { |
|
|
|
|
|
["]M"] = "@function.outer", |
|
|
|
|
|
["]["] = "@class.outer", |
|
|
|
|
|
}, |
|
|
|
|
|
goto_previous_start = { |
|
|
|
|
|
["[m"] = "@function.outer", |
|
|
|
|
|
["[["] = "@class.outer", |
|
|
|
|
|
}, |
|
|
|
|
|
goto_previous_end = { |
|
|
|
|
|
["[M"] = "@function.outer", |
|
|
|
|
|
["[]"] = "@class.outer", |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
EOF |