mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-07 10:56:50 +00:00
Vim plugins with gittag source: - vim-airline, vim-airline-themes, vim-ale, vim-devicons, vim-go - vim-nerdtree, vim-prettier, vim-rust, vim-sensible, vim-shfmt - vim-syntastic rust.vim is a directory symlink to vim-rust, so it shares the same releases.conf automatically. Alias confs (alias_of): - postgresql → postgres - postgresql-client, postgres-client → psql - mariadb-server, mariadbd → mariadb - gnupg → gpg, iterm → iterm2, ziglang → zig - trippy → trip, powershell → pwsh Fix: psql is its own package (postgres client), not an alias of postgres (server). Both use the same GitHub repo (bnnanet/postgresql-releases) but install different binaries.
title, homepage, tagline
| title | homepage | tagline |
|---|---|---|
| vim-ale | https://github.com/dense-analysis/ale | ALE: allows you to lint while you type. |
To update (replacing the current version) run webi vim-ale.
Files
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.vim/pack/plugins/start/
~/.vim/plugins/ale.vim
Cheat Sheet
ALE (Asynchronous Lint Engine) is a plugin providing linting (syntax checking and semantic errors) in NeoVim 0.2.0+ and Vim 8 while you edit your text files, and acts as a Vim Language Server Protocol client.
ALE is the spiritual successor to Syntastic.
This installer includes a few reasonable defaults.
How to install and configure manually
mkdir -p ~/.vim/pack/plugins/start/
git clone --depth=1 https://github.com/dense-analysis/ale.git ~/.vim/pack/plugins/start/ale
.vimrc:
" ALE: reasonable defaults from webinstall.dev/vim-ale
source ~/.vim/plugins/ale.vim
.vim/plugins/ale.vim:
" turn on the syntax checker
syntax on
" don't check syntax immediately on open or on quit
let g:ale_lint_on_enter = 0
let g:ale_lint_on_save = 1
" error symbol to use in sidebar
let g:ale_sign_error = '☢️'
let g:ale_sign_warning = '⚡'
" show number of errors
function! LinterStatus() abort
let l:counts = ale#statusline#Count(bufnr(''))
let l:all_errors = l:counts.error + l:counts.style_error
let l:all_non_errors = l:counts.total - l:all_errors
return l:counts.total == 0 ? 'OK' : printf(
\ '%d⨉ %d⚠ ',
\ all_non_errors,
\ all_errors
\)
endfunction
set statusline+=%=
set statusline+=\ %{LinterStatus()}
" format error strings
let g:ale_echo_msg_error_str = 'E'
let g:ale_echo_msg_warning_str = 'W'
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'