More lean keymappings
This commit is contained in:
parent
ca3b74c5f6
commit
bd62b52285
@ -503,15 +503,16 @@ local harpoon = require('harpoon')
|
||||
|
||||
harpoon:setup()
|
||||
|
||||
local lean = require'lean'
|
||||
local lean = require 'lean'
|
||||
|
||||
lean.setup{
|
||||
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)
|
||||
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)
|
||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
end
|
||||
},
|
||||
mappings = true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user