1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Added ale to vim

This commit is contained in:
Ryan Kes 2020-06-12 11:57:13 +02:00
parent 70e86868c0
commit 86af122e22
4 changed files with 31 additions and 18 deletions

View File

@ -161,6 +161,7 @@ A repository of my personal configuration files.
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]] - [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
*** Programming *** Programming
- [[https://github.com/airblade/vim-gitgutter][airblade/vim-gitgutter]] - [[https://github.com/airblade/vim-gitgutter][airblade/vim-gitgutter]]
- [[https://github.com/dense-analysis/ale][dense-analysis/ale]]
- [[https://github.com/godlygeek/tabular][godlygeek/tabular]] - [[https://github.com/godlygeek/tabular][godlygeek/tabular]]
- [[https://github.com/neoclide/coc.nvim][neoclice/coc.nvim]] - [[https://github.com/neoclide/coc.nvim][neoclice/coc.nvim]]
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]] - [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]

View File

@ -1,12 +1,10 @@
{ {
"dependencies": { "dependencies": {
"coc-css": ">=1.2.3", "coc-css": ">=1.2.3",
"coc-eslint": "^1.2.7",
"coc-html": ">=1.2.4", "coc-html": ">=1.2.4",
"coc-jest": ">=1.0.3", "coc-jest": ">=1.0.3",
"coc-json": ">=1.2.6", "coc-json": ">=1.2.6",
"coc-pairs": ">=1.2.21", "coc-pairs": ">=1.2.21",
"coc-prettier": ">=1.1.14",
"coc-python": ">=1.2.12", "coc-python": ">=1.2.12",
"coc-rls": ">=1.1.6", "coc-rls": ">=1.1.6",
"coc-tsserver": ">=1.5.1", "coc-tsserver": ">=1.5.1",

View File

@ -34,6 +34,7 @@
" Programming { " Programming {
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'dense-analysis/ale'
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdcommenter' Plug 'preservim/nerdcommenter'
@ -163,8 +164,6 @@
" } " }
" coc { " coc {
command! -nargs=0 Prettier :CocCommand prettier.formatFile
vmap <leader>f <Plug>(coc-format-selected) vmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected) nmap <leader>f <Plug>(coc-format-selected)
@ -184,4 +183,19 @@
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" } " }
" ale {
" Shortcuts jump between linting errors
map <silent> [c <Plug>(ale_previous_wrap)
nmap <silent> ]c <Plug>(ale_next_wrap)
let g:ale_sign_error = '❌'
let g:ale_sign_warning = '⚠️'
" Fix files
let g:ale_fixers = {'javascript': ['prettier', 'eslint']}
" Fix files automatically on save
let g:ale_fix_on_save = 1
" }
" } " }