diff --git a/nix/base-system/init.lua b/nix/base-system/init.lua index 4550848..778709f 100644 --- a/nix/base-system/init.lua +++ b/nix/base-system/init.lua @@ -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" }, "ti", function () vim.cmd("LeanInfoviewToggle") end, opts) + vim.keymap.set({ "n", "v" }, "sg", function () vim.cmd("LeanGoal") end, opts) + vim.keymap.set({ "n", "v" }, "stg", function () vim.cmd("LeanTermGoal") end, opts) end }, mappings = true,