Closed Ben10164 closed 1 month ago
Hi there, can you provide a fuller reproducer? They work fine here, both on a fully fresh install (which is what CI runs) as well as a LazyVim install.
Holy crap, I just realized that its because I have
ft = {
-- A list of patterns which will be used to protect any matching
-- Lean file paths from being accidentally modified (by marking the
-- buffer as `nomodifiable`).
nomodifiable = {
-- by default, this list includes the Lean standard libraries,
-- as well as files within dependency directories (e.g. `_target`)
-- Set this to an empty table to disable.
},
},
in the config that I use.
Here is a repro, but I believe it's that the nomodifiable
option has been changed.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
-- bootstrap lazy.nvim
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({
spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
{
"Julian/lean.nvim",
opts = {
ft = {
nomodifiable = {},
},
},
},
},
})
Screenshot upon opening a lean file after doing a fresh install with the above config:
No, it's the ft
key that causes the problem. Even if you set ft = {}
, it throws an error.
No, it's the
ft
key that causes the problem. Even if you setft = {}
, it throws an error.
Is that the expected behavior @Julian ?
The commit that I was referring to seems to be removing the ft
key, but the README.md
for the repo still includes it in the example configuration
Fixed in the linked commit, please follow up if you still have trouble.
Thanks!
All commits from 2d76773e1a09769310248bbf2ae6797a9d3370bb and later no longer successfully run. All features stop working.
On a fresh install I get the following error: