chores(all): format

This commit is contained in:
Fabrice Mouhartem 2024-11-10 15:38:47 +01:00
parent 6851e16bcf
commit 8f04c0e04c
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
9 changed files with 42 additions and 40 deletions

View File

@ -16,9 +16,11 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
-- email commands: my/msy to paste the html inside the clipboard -- email commands: my/msy to paste the html inside the clipboard
vim.keymap.set('', '<LocalLeader>msy', ':w !pandoc -f markdown+emoji -t html5 -s | wl-copy --type text/html<CR><CR>', vim.keymap.set('', '<LocalLeader>msy', ':w !pandoc -f markdown+emoji -t html5 -s | wl-copy --type text/html<CR><CR>',
{ noremap = true, silent = true, desc = "[M]arkdown to [S]ingle page [Y]ank" }) { noremap = true, silent = true, desc = "[M]arkdown to [S]ingle page [Y]ank" })
vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy --type text/html<CR><CR>', vim.keymap.set('', '<LocalLeader>my',
':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy --type text/html<CR><CR>',
{ noremap = true, silent = true, desc = "[M]arkdown to HTML [Y]ank" }) { noremap = true, silent = true, desc = "[M]arkdown to HTML [Y]ank" })
vim.keymap.set('', '<LocalLeader>mp', '<Plug>MarkdownPreviewToggle', { noremap = true, silent = true, desc = "[M]arkdown [P]review" }) vim.keymap.set('', '<LocalLeader>mp', '<Plug>MarkdownPreviewToggle',
{ noremap = true, silent = true, desc = "[M]arkdown [P]review" })
end end
}) })
@ -83,4 +85,3 @@ vim.api.nvim_create_autocmd("FileType", {
require('spelling').spell_keymap() require('spelling').spell_keymap()
end, end,
}) })

View File

@ -1,7 +1,8 @@
local map_list = { local map_list = {
-- ["w|"] = ":vsplit", ["w-"] = ":split", -- w| / w- pour créer des splits verticaux et horizontaux -- ["w|"] = ":vsplit", ["w-"] = ":split", -- w| / w- pour créer des splits verticaux et horizontaux
-- ["ge"] = ":bprevious", ["gn"] = ":bnext", -- ["ge"] = ":bprevious", ["gn"] = ":bnext",
["W"] = ":w", ["<C-t>"] = ":tabnew", ["W"] = ":w",
["<C-t>"] = ":tabnew",
} }
local keymap = vim.keymap.set local keymap = vim.keymap.set