Added dpetka's suggestions

This commit is contained in:
Ben Puryear 2024-07-18 17:50:20 -07:00 committed by GitHub
parent bb8068f4b0
commit a86fae1258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,9 +8,6 @@ return {
{ {
"Julian/lean.nvim", "Julian/lean.nvim",
event = { "BufReadPre *.lean", "BufNewFile *.lean" }, event = { "BufReadPre *.lean", "BufNewFile *.lean" },
dependencies = {
"nvim-lua/plenary.nvim",
},
-- see details below for full configuration options -- see details below for full configuration options
opts = { opts = {
@ -22,7 +19,6 @@ return {
-- In particular ensure you have followed instructions setting up a callback -- In particular ensure you have followed instructions setting up a callback
-- for `LspAttach` which sets your key bindings! -- for `LspAttach` which sets your key bindings!
lsp = { lsp = {
on_attach = on_attach,
init_options = { init_options = {
-- See Lean.Lsp.InitializationOptions for details and further options. -- See Lean.Lsp.InitializationOptions for details and further options.
@ -125,17 +121,4 @@ return {
}, },
}, },
}, },
{
-- Lean4 has it's own built in lsp
-- this is automatically added by lean.nvim
"neovim/nvim-lspconfig",
},
{
"hrsh7th/nvim-cmp",
optional = true,
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, { { name = "nvim_lsp" }, { name = "path" }, { name = "buffer" } })
end,
},
} }