[nvim] telescope-notmuch and keymap

This commit is contained in:
Julien Rabier 2023-11-06 14:23:53 +01:00
parent f929571675
commit 196cc19a88
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
vim.keymap.set("n", ",c", "<esc>2GddOTo: contact@sysnove.fr<esc>jddOCc: <esc>")
vim.keymap.set("n", "<leader>b", ":!bash gen.sh<cr><cr>")
vim.keymap.set("n", ",b", ":!bash gen.sh<cr><cr>")
-- function to toggle "normal" diagnostics or lsp-lines diagnostics.
local function toggle_diagnostics()
local diagnostics_on = require("lsp_lines").toggle()
@ -13,3 +13,4 @@ local function toggle_diagnostics()
end
end
vim.keymap.set("n", "<Leader>ui", toggle_diagnostics, { desc = "Toggle [i]nline diagnostic type" })
vim.keymap.set("i", "<C-a>", "<cmd>Telescope notmuch theme=cursor<CR>")

View File

@ -0,0 +1,7 @@
return {
"https://codeberg.org/JoshuaCrewe/telescope-notmuch.nvim.git",
config = function()
require("telescope").load_extension("notmuch")
end,
ft = { "mail" },
}