-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the Lean language #695
Conversation
897f80c
to
6cbc0f8
Compare
lean3 = { | ||
showFilter = helpers.defaultNullOpts.mkBool true ""; | ||
|
||
mouseEvents = helpers.defaultNullOpts.mkBool false '' | ||
Setting this to `true` will simulate mouse events in the Lean 3 infoview, this is buggy | ||
at the moment so you can use the I/i keybindings to manually trigger these. | ||
''; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn this be in the global scope and not in infoview
? (as from the README.rst):
-- Redirect Lean's stderr messages somehwere (to a buffer by default)
stderr = {
enable = true,
-- height of the window
height = 5,
-- a callback which will be called with (multi-line) stderr output
-- e.g., use:
-- on_lines = function(lines) vim.notify(lines) end
-- if you want to redirect stderr to `vim.notify`.
-- The default implementation will redirect to a dedicated stderr
-- window.
on_lines = nil,
},
-- Legacy Lean 3 support (on_attach is as above, your LSP handler)
lsp3 = { on_attach = on_attach },
-- mouse_events = true will simulate mouse events in the Lean 3 infoview, this is buggy at the moment
-- so you can use the I/i keybindings to manually trigger these
lean3 = { mouse_events = false },
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indeed what the documentation suggests, but after looking at the code, this is clearly under infoview
.
This isn't the only error I spotted in this documentation section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.... I tried to search for a compatibility layer but there does not seem to be any
plugins.lsp.servers.lean
(leanls)plugins.lean
(lean.nvim)