mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.76k stars 191 forks source link

`ansible-lint` not available #608

Closed nnorakk closed 1 week ago

nnorakk commented 1 week ago

I have installed ansible-lint by Mason

2024-06-24_19-57

require('lint').linters_by_ft = {
    python = { 'pylint' },
    ['yaml.ansible'] = { 'ansible-lint' },
}

And I get this error:

E5108: Error executing lua: /home/jpabc/.local/share/nvim/lazy/nvim-lint/lua/lint.lua:240: Linter with name 
`ansible-lint` not available                                                                                 
stack traceback:                                                                                             
        [C]: in function 'assert'                                                                            
        /home/jpaulo/.local/share/nvim/lazy/nvim-lint/lua/lint.lua:240: in function 'lookup_linter'          
        /home/jpaulo/.local/share/nvim/lazy/nvim-lint/lua/lint.lua:251: in function 'try_lint'               
        .../jpaulo/.config/nvim/plugin/plugins_config/nvim-lint.lua:13: in function <.../jpaulo/.config/nvim/
plugin/plugins_config/nvim-lint.lua:12>   

Is it any procedure can I take to fix this error?

mfussenegger commented 1 week ago

As per readme, the linter's module name is ansible_lint