Repository navigation
Conversation
lean.nvim removed require('lean').setup() (ca4393dc, post-v2026.4.1) and lsp.on_attach (4f62922d, v2026.4.1), switching to vim.g.lean_config and native vim.lsp.enable('leanls').
BREAKING CHANGE: Requires lean.nvim at or after ca4393dc (post-v2026.4.1 main); users pinned to older versions must update lean.nvim.
Review ChecklistDoes this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist: Proper conventional commit scoping:
|
Description
Updated
astrocommunity.pack.leanto matchlean.nvim's breaking configuration and LSP changes ✨What changed
setup()tovim.g.lean_config: InJulian/lean.nvim(ca4393dc, 2026-10-04, post-v2026.4.1main),require("lean").setup()was removed, causinglazy.nvimto crash on.leanfiles with:attempt to call field 'setup' (a nil value)optsmerging viainit+ no-opconfig:lazy.nvimrunspackadd(which sourcesplugin/lean.lua→lean.init()→require("lean.config")()) beforeconfig(). Settingvim.g.lean_configininitensures useroptsare already loaded whenplugin/lean.luaevaluateslsp.enable.config = function() endpreventslazy.nvimfrom calling the removedrequire("lean").setup(opts).ft = { "lean" }toevent = { "BufReadPre *.lean", "BufNewFile *.lean" }: Matcheslean.nvim's recommended setup (927f8485) soplugin/lean.luaenablesleanlsbeforeFileType leanfires on the first opened buffer.lsp.on_attach:lean.nvimremovednvim-lspconfigandlsp.on_attach(4f62922d,v2026.4.1) in favor of nativelsp/leanls.lua+vim.lsp.enable("leanls"), which inheritsAstroLSP'svim.lsp.config["*"]automatically.Additional Information
lean.nvimat or afterca4393dc(post-v2026.4.1main). Users pinned to olderlean.nvimversions that still requirelean.setup()will need to update the plugin.0.12.6,AstroNvim,lean.nvim(5f75941), andselene.