dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.42k stars 1.42k forks source link

Make g:ale_virtualtext_cursor buffer local #2296

Open alok opened 5 years ago

alok commented 5 years ago

It'd be nice to be able to selectively disable virtualtext in some buffers. My use case is that I'm writing prose in markdown, and while writegood's suggestions are handy, they're not something I want to see while writing, and are better viewed in the quickfix list/status menu.

Something like the ability to set b:ale_virtualtext_cursor for specific buffers would be nice.

w0rp commented 5 years ago

Disabling it if enabled globally should be easy, like b:ale_enabled. The global variable has the dual purpose of enabling the autocmd commands and show the messages, so it won't be possible to disable it globally and enable it locally, but it will be possible to enable it globally and disable it locally.

alok commented 5 years ago

Enabled globally and disabled locally was what I wanted anyway, so that would work.