Skip to content

rf-/nvim-ale-diagnostic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

nvim-ale-diagnostic

Routes Neovim LSP diagnostics to ALE for display. Useful if you like to manage all your errors in the same way.

Requirements

  • Neovim nightly
  • ALE

Installation

Plug 'nathanmsmith/nvim-ale-diagnostic'
" or, if you use a Vim 8 package manager
call packager#add('nathanmsmith/nvim-ale-diagnostic', {'type': 'opt'})
packadd nvim-ale-diagnostic
" or your favorite package manager here
" ...

lua require("lsp")

Then, put the following in a Lua file at nvim/lua/lsp/init.lua:

require("nvim-ale-diagnostic")

vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
  vim.lsp.diagnostic.on_publish_diagnostics, {
    underline = false,
    virtual_text = false,
    signs = true,
    update_in_insert = false,
  }
)

Notes

  • underline and virtual_text are configurable, but you should probably disable them and configure those features through ALE.
  • The default Neovim diagnostic signs are overriden by this plugin.

About

Display Neovim LSP diagnostics in ALE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%