17 lines
844 B
Lua
17 lines
844 B
Lua
-- Keymaps are automatically loaded on the VeryLazy event
|
|
-- 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", ",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()
|
|
if diagnostics_on then
|
|
vim.diagnostic.config({ virtual_text = false })
|
|
else
|
|
vim.diagnostic.config({ virtual_text = { spacing = 4, prefix = "●" } })
|
|
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>")
|