dense-analysis / ale

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

Set keywordprg rather than mapping <Space> #4623

Open benknoble opened 1 year ago

benknoble commented 1 year 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 1 year ago

Interesting. I'll give it a try.