More lean keymappings

This commit is contained in:
Jeremy Wall 2024-01-31 20:52:04 -05:00
parent ca3b74c5f6
commit bd62b52285

View File

@ -503,18 +503,19 @@ local harpoon = require('harpoon')
harpoon:setup() harpoon:setup()
local lean = require'lean' local lean = require 'lean'
lean.setup{ lean.setup {
lsp = { lsp = {
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
local opts = { buffer = bufnr } local opts = { buffer = bufnr }
vim.keymap.set({ "n", "v" }, "<Leader>ti", function () vim.cmd("LeanInfoviewToggle") end, opts) 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>sg", function() vim.cmd("LeanGoal") end, opts)
vim.keymap.set({ "n", "v" }, "<Leader>stg", function () vim.cmd("LeanTermGoal") end, opts) vim.keymap.set({ "n", "v" }, "<Leader>stg", function() vim.cmd("LeanTermGoal") end, opts)
end vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
}, end
mappings = true, },
mappings = true,
} }
-- telescope keymaps -- telescope keymaps