Custom provider for displaying ALE status/diagnostics for feline.nvim.
- feline.nvim
- ALE
- NerdFonts of your choice
- neovim 0.6 and up
use 'dense-analysis/ale'
use {
'famiu/feline.nvim',
requires = { 'creativenull/feline-provider-ale.nvim' },
}
'dense-analysis/ale',
{
'famiu/feline.nvim',
dependencies = { 'creativenull/feline-provider-ale.nvim' },
},
Plug 'dense-analysis/ale'
Plug 'famiu/feline.nvim'
Plug 'creativenull/feline-provider-ale.nvim'
Docs can also be found over at :help feline-provider-ale
.
Check out the example file over in examples/feline.lua
There are four custom providers that come with this plugin for ALE.
Shows the current status.
local ale = require('feline.custom_providers.ale')
require('feline').setup({
-- ...
custom_providers = {
ale_status = ale.status_provider,
},
})
Separate providers for different diagnostics.
local ale = require('feline.custom_providers.ale')
require('feline').setup({
-- ...
custom_providers = {
ale_error = ale.diagnostic_error_provider,
ale_warning = ale.diagnostic_warning_provider,
ale_info = ale.diagnostic_info_provider,
},
})
There are also some helper functions that you can use provided in the same module.
is_registered()
- returns a boolean when an ALE linter or fixer has been setuphas_registered_linters()
- returns a boolean when an ALE linter has been setuphas_registered_fixers()
- returns a boolean when an ALE fixers has been setupget_diagnostic_count(attr)
- returns a count of diagnostic given an scope (attr
), which can beerror
,warning
orinfo
Covered by the same GPL license provided in feline.