All Projects → maximbaz → Lightline Ale

maximbaz / Lightline Ale

Licence: isc
ALE indicator for the lightline vim plugin

Projects that are alternatives of or similar to Lightline Ale

Validator.vim
Check syntax on the fly asynchronously.
Stars: ✭ 210 (-3.23%)
Mutual labels:  linter, vim-plugin
Ale
Check syntax in Vim asynchronously and fix files, with Language Server Protocol (LSP) support
Stars: ✭ 11,380 (+5144.24%)
Mutual labels:  linter, vim-plugin
Neomake
Asynchronous linting and make framework for Neovim/Vim
Stars: ✭ 2,512 (+1057.6%)
Mutual labels:  linter, vim-plugin
Jupyter Vim
Make Vim talk to Jupyter kernels
Stars: ✭ 194 (-10.6%)
Mutual labels:  vim-plugin
Vim Dispatch
dispatch.vim: Asynchronous build and test dispatcher
Stars: ✭ 2,341 (+978.8%)
Mutual labels:  vim-plugin
Vim Thematic
Alter Vim's appearance to suit your task & environ
Stars: ✭ 204 (-5.99%)
Mutual labels:  vim-plugin
Kronos.vim
A simple task and time manager. Project moved here:
Stars: ✭ 205 (-5.53%)
Mutual labels:  vim-plugin
Vim Signify
➕ Show a diff using Vim its sign column.
Stars: ✭ 2,390 (+1001.38%)
Mutual labels:  vim-plugin
Goconst
Find in Go repeated strings that could be replaced by a constant
Stars: ✭ 201 (-7.37%)
Mutual labels:  linter
Spotbugs
SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.
Stars: ✭ 2,569 (+1083.87%)
Mutual labels:  linter
Dotenv Linter
☺️ Linting dotenv files like a charm!
Stars: ✭ 207 (-4.61%)
Mutual labels:  linter
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (-9.22%)
Mutual labels:  vim-plugin
Diktat
Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
Stars: ✭ 196 (-9.68%)
Mutual labels:  linter
8cc.vim
C Compiler written in Vim script
Stars: ✭ 205 (-5.53%)
Mutual labels:  vim-plugin
Markuplint
A Linter for All Markup Languages.
Stars: ✭ 193 (-11.06%)
Mutual labels:  linter
Nova Vim
Nova color scheme plugin for Vim
Stars: ✭ 211 (-2.76%)
Mutual labels:  vim-plugin
Woke
✊ Detect non-inclusive language in your source code.
Stars: ✭ 190 (-12.44%)
Mutual labels:  linter
Vinux
Swiss Army Knife,Dark power vim config
Stars: ✭ 198 (-8.76%)
Mutual labels:  vim-plugin
Godot Gdscript Toolkit
Independent set of GDScript tools - parser, linter and formatter
Stars: ✭ 214 (-1.38%)
Mutual labels:  linter
Flakehell
Flake8 wrapper to make it nice, legacy-friendly, configurable.
Stars: ✭ 217 (+0%)
Mutual labels:  linter

lightline-ale

This plugin provides ALE indicator for the lightline vim plugin.

screenshot

Table Of Contents

Installation

Install using a plugin manager of your choice, for example:

call dein#add('w0rp/ale')                 " Dependency: linter
call dein#add('itchyny/lightline.vim')    " Dependency: status line
call dein#add('maximbaz/lightline-ale')

Integration

  1. Register the components:
let g:lightline = {}

let g:lightline.component_expand = {
      \  'linter_checking': 'lightline#ale#checking',
      \  'linter_infos': 'lightline#ale#infos',
      \  'linter_warnings': 'lightline#ale#warnings',
      \  'linter_errors': 'lightline#ale#errors',
      \  'linter_ok': 'lightline#ale#ok',
      \ }
  1. Set color to the components:
let g:lightline.component_type = {
      \     'linter_checking': 'right',
      \     'linter_infos': 'right',
      \     'linter_warnings': 'warning',
      \     'linter_errors': 'error',
      \     'linter_ok': 'right',
      \ }
  1. Add the components to the lightline, for example to the right side:
let g:lightline.active = { 'right': [[ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_infos', 'linter_ok' ]] }

Configuration

g:lightline#ale#indicator_checking

The indicator to use when ALE is in progress. Default is Linting....

g:lightline#ale#indicator_infos

The indicator to use when there are infos. Default is I:.

g:lightline#ale#indicator_warnings

The indicator to use when there are warnings. Default is W:.

g:lightline#ale#indicator_errors

The indicator to use when there are errors. Default is E:.

g:lightline#ale#indicator_ok

The indicator to use when there are no warnings or errors. Default is OK.

Using icons as indicators

If you would like to replace the default indicators with symbols like on the screenshot, then you'll need to ensure you have some "iconic fonts" installed, such as Font Awesome. A common alternative is to replace your primary font with one of the Patched Nerd Fonts, which saves you from having to install multiple fonts.

The following icons from the Font Awesome font are used in the screenshot:

  • Checking: f110
  • Infos: f129
  • Warnings: f071
  • Errors: f05e
  • OK: f00c (although I prefer to disable this component)

To specify icons in the configuration, use their unicode codes as "\uXXXX" (make sure to wrap them in double quotes). Alternatively copy the icons from a font website, or type <C-v>u<4-digit-unicode> or <C-v>U<8-digit-unicode> to insert the literal characters.

See the code points here:

Here's the configuration snippet used in the screenshot:

let g:lightline#ale#indicator_checking = "\uf110"
let g:lightline#ale#indicator_infos = "\uf129"
let g:lightline#ale#indicator_warnings = "\uf071"
let g:lightline#ale#indicator_errors = "\uf05e"
let g:lightline#ale#indicator_ok = "\uf00c"

License

Released under the ISC License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].