forked from mxaddict/dotfiles_archive_001
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from reilg/update-mappings
Updated some ALE mapping
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
" some linter aliases | ||
let g:ale_linter_aliases = {} | ||
let g:ale_linter_aliases['vue'] = ['javascript', 'vue'] " run both js and vue linters for vue files | ||
|
||
" setup our linters | ||
let g:ale_linters = {} | ||
let g:ale_linters['javascript'] = ['eslint'] | ||
let g:ale_linters['vue'] = ['eslint'] | ||
let g:ale_linters['php'] = ['php', 'phpcs'] | ||
|
||
|
||
" setup our fixers | ||
let g:ale_fixers = {} | ||
let g:ale_fixers['javascript'] = ['prettier', 'eslint'] | ||
let g:ale_fixers['vue'] = ['prettier', 'eslint'] | ||
let g:ale_fixers['json'] = ['prettier'] | ||
let g:ale_fixers['php'] = ['phpcbf'] | ||
|
||
" let g:ale_lint_on_save = 1 | ||
" let g:ale_fix_on_save = 1 | ||
let g:ale_javascript_prettier_options = '--no-semi --single-quote' | ||
let g:ale_lint_on_enter = 0 | ||
|
||
" disable linters by default | ||
let g:ale_linters_explicit = 1 | ||
|
||
nmap <silent> <leader>a <Plug>(ale_next_wrap) | ||
nmap <silent> <leader>f <Plug>(ale_fix) | ||
nmap <silent> <leader>d <Plug>(ale_lint) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
" Start interactive EasyAlign in visual mode (e.g. vipga) | ||
" start interactive easyalign in visual mode (e.g. vipga) | ||
xmap ga <Plug>(EasyAlign) | ||
" Start interactive EasyAlign for a motion/text object (e.g. gaip) | ||
" start interactive easyalign for a motion/text object (e.g. gaip) | ||
nmap ga <Plug>(EasyAlign) |