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:
parent
70e86868c0
commit
86af122e22
@ -161,6 +161,7 @@ A repository of my personal configuration files.
|
||||
- [[https://github.com/vim-airline/vim-airline][vim-airline/vim-airline]]
|
||||
*** Programming
|
||||
- [[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/neoclide/coc.nvim][neoclice/coc.nvim]]
|
||||
- [[https://github.com/preservim/nerdcommenter][preservim/nerdcommenter]]
|
||||
|
@ -1,12 +1,10 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"coc-css": ">=1.2.3",
|
||||
"coc-eslint": "^1.2.7",
|
||||
"coc-html": ">=1.2.4",
|
||||
"coc-jest": ">=1.0.3",
|
||||
"coc-json": ">=1.2.6",
|
||||
"coc-pairs": ">=1.2.21",
|
||||
"coc-prettier": ">=1.1.14",
|
||||
"coc-python": ">=1.2.12",
|
||||
"coc-rls": ">=1.1.6",
|
||||
"coc-tsserver": ">=1.5.1",
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
" Programming {
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'dense-analysis/ale'
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'preservim/nerdcommenter'
|
||||
@ -163,8 +164,6 @@
|
||||
" }
|
||||
|
||||
" coc {
|
||||
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||
|
||||
vmap <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> <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
|
||||
" }
|
||||
" }
|
||||
|
Loading…
Reference in New Issue
Block a user