Git Product home page Git Product logo

Comments (5)

pmeinhardt avatar pmeinhardt commented on June 15, 2024 1

I see the same issue Neovim 0.9.5.

This worked for me – as a workaround for setting custom sign symbols:

sign define DiagnosticSignError text=┃ texthl=DiagnosticSignError
sign define DiagnosticSignWarn text=┃ texthl=DiagnosticSignWarn

from ale.

pmeinhardt avatar pmeinhardt commented on June 15, 2024

And after some digging… found out you can also set this:

let g:ale_use_neovim_diagnostics_api = 0

It looks as if ALE will set signs via diagnostics on Neovim, but it does not define the corresponding signs.

References:

ale/plugin/ale.vim

Lines 202 to 204 in c88bddf

" If 1, disables ALE's built in error display. Instead, all errors are piped
" to the diagnostics API.
let g:ale_use_neovim_diagnostics_api = get(g:, 'ale_use_neovim_diagnostics_api', has('nvim-0.6'))

ale/autoload/ale/engine.vim

Lines 187 to 189 in c88bddf

if g:ale_use_neovim_diagnostics_api
call ale#engine#SendResultsToNeovimDiagnostics(a:buffer, a:loclist)
endif

ale/autoload/ale/engine.vim

Lines 247 to 258 in c88bddf

function! ale#engine#SendResultsToNeovimDiagnostics(buffer, loclist) abort
if !has('nvim-0.6')
" We will warn the user on startup as well if they try to set
" g:ale_use_neovim_diagnostics_api outside of a Neovim context.
return
endif
" Keep the Lua surface area really small in the VimL part of ALE,
" and just require the diagnostics.lua module on demand.
let l:SendDiagnostics = luaeval('require("ale.diagnostics").sendAleResultsToDiagnostics')
call l:SendDiagnostics(a:buffer, a:loclist)
endfunction

module.sendAleResultsToDiagnostics = function(buffer, loclist)

from ale.

pmeinhardt avatar pmeinhardt commented on June 15, 2024

I guess it depends on which you prefer:

  1. Handling issues via diagnostics on Neovim:
    • In this case customize the DiagnosticSign* definitions (see my first comment)
    • This should also make your sign customizations apply for diagnostic sources other than ALE
    • See :help sign-define
  2. Via ALE: In this case use let g:ale_use_neovim_diagnostics_api = 0 (see the comment just above)

from ale.

mooreye avatar mooreye commented on June 15, 2024

I see the same issue Neovim 0.9.5.

This worked for me – as a workaround for setting custom sign symbols:

sign define DiagnosticSignError text=┃ texthl=DiagnosticSignError
sign define DiagnosticSignWarn text=┃ texthl=DiagnosticSignWarn

I can confirm this works

from ale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.