Zulip Chat Archive
Stream: general
Topic: neovim - recompile dependencies
Antoine Chambert-Loir (Aug 08 2024 at 09:19):
I quickly browsed through the neovim config files of @Julian Berman and @Patrick Massot but didn't find the answer there: how is it possible, from within neovim, to ask Lean to recompile the modified dependencies?
— Or do you simply launch lake build
in a separate window?
(Side remark: it is annying to have to change /
directory separators to .
in order to compile a given lean file in lake build
: maybe there's a way to do that? — Or I can make my own make
command that'll adjust the syntax.)
Matthew Ballard (Aug 08 2024 at 09:20):
:LeanRefreshDependencies
?
Patrick Massot (Aug 08 2024 at 09:26):
You can see at https://github.com/PatrickMassot/neovim_config/blob/master/lua/keymaps.lua#L34 that I even reproduced the VSCode keybinding for it since it was so present in my muscle memory.
Patrick Massot (Aug 08 2024 at 09:28):
Antoine Chambert-Loir said:
(Side remark: it is annying to have to change
/
directory separators to.
in order to compile a given lean file inlake build
: maybe there's a way to do that? — Or I can make my ownmake
command that'll adjust the syntax.)
See lean4#2756
Matthew Ballard (Aug 08 2024 at 09:29):
Also very popular :)
Matthew Ballard (Aug 08 2024 at 09:29):
@Julian Berman had a script also I think
Julian Berman (Aug 08 2024 at 12:27):
This zsh completion script: https://github.com/Julian/dotfiles/blob/main/.config/zsh/completions/_lake which basically converts / to . on tab complete.
Last updated: May 02 2025 at 03:31 UTC