Keybindings for lean4.nvim

This commit is contained in:
Jeremy Wall 2024-01-31 20:36:10 -05:00
parent 094df66621
commit ebb61135a9

View File

@ -503,9 +503,15 @@ local harpoon = require('harpoon')
harpoon:setup()
require('lean').setup{
local lean = require'lean'
lean.setup{
lsp = {
on_attach = function(client, bufnr)
local opts = { buffer = bufnr }
vim.keymap.set({ "n", "v" }, "<Leader>ti", function () vim.cmd("LeanInfoviewToggle") end, opts)
vim.keymap.set({ "n", "v" }, "<Leader>sg", function () vim.cmd("LeanGoal") end, opts)
vim.keymap.set({ "n", "v" }, "<Leader>stg", function () vim.cmd("LeanTermGoal") end, opts)
end
},
mappings = true,