[nvim] telescope-notmuch and keymap
This commit is contained in:
parent
f929571675
commit
196cc19a88
@ -2,7 +2,7 @@
|
|||||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
vim.keymap.set("n", ",c", "<esc>2GddOTo: contact@sysnove.fr<esc>jddOCc: <esc>")
|
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.
|
-- function to toggle "normal" diagnostics or lsp-lines diagnostics.
|
||||||
local function toggle_diagnostics()
|
local function toggle_diagnostics()
|
||||||
local diagnostics_on = require("lsp_lines").toggle()
|
local diagnostics_on = require("lsp_lines").toggle()
|
||||||
@ -13,3 +13,4 @@ local function toggle_diagnostics()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.keymap.set("n", "<Leader>ui", toggle_diagnostics, { desc = "Toggle [i]nline diagnostic type" })
|
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>")
|
||||||
|
|||||||
7
private_dot_config/nvim/lua/plugins/mail.lua
Normal file
7
private_dot_config/nvim/lua/plugins/mail.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
"https://codeberg.org/JoshuaCrewe/telescope-notmuch.nvim.git",
|
||||||
|
config = function()
|
||||||
|
require("telescope").load_extension("notmuch")
|
||||||
|
end,
|
||||||
|
ft = { "mail" },
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user