dense-analysis / ale

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

Set keywordprg rather than mapping <Space> #4623

Open benknoble opened 12 months ago

benknoble commented 12 months ago

https://github.com/dense-analysis/ale/blob/14350dbb0d265ef87d1c7d420d89fb4165a2b131/ftplugin/ale-info.vim#L16

Mapping space interferes with user mappings beginning with space. The standard way to set "help" is to use keywordprg. In this case, I suggest

command -buffer -nargs=* ALEHelp call ALEInfoOpenHelp()
setlocal keywordprg=:ALEHelp
w0rp commented 11 months ago

Interesting. I'll give it a try.