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
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" })
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" })
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
})
@ -83,4 +85,3 @@ vim.api.nvim_create_autocmd("FileType", {
require('spelling').spell_keymap()
end,
})

View File

@ -62,5 +62,5 @@ vim.o.scrolloff = 10
vim.cmd "set formatoptions-=t"
-- Make some typographic chars visible
vim.opt.listchars:append({nbsp = "·", trail = "¤", eol = ''})
vim.opt.listchars:append({ nbsp = "·", trail = "¤", eol = '' })
vim.o.list = true

View File

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

View File

@ -47,16 +47,16 @@ vim.api.nvim_set_keymap("n", "<Leader>nef", ":Neorg export to-file ",
-- Tasks
vim.api.nvim_set_keymap("n", "<LocalLeader>td", "<Plug>(neorg.qol.todo-items.todo.task-done)",
{ noremap = true, silent = true, desc = "[T]ask [D]one"})
{ noremap = true, silent = true, desc = "[T]ask [D]one" })
vim.api.nvim_set_keymap("n", "<LocalLeader>tu", "<Plug>(neorg.qol.todo-items.todo.task-undone)",
{ noremap = true, silent = true, desc = "[T]ask [U]ndone"})
{ noremap = true, silent = true, desc = "[T]ask [U]ndone" })
vim.api.nvim_set_keymap("n", "<LocalLeader>tp", "<Plug>(neorg.qol.todo-items.todo.task-pending)",
{ noremap = true, silent = true, desc = "[T]ask [P]ending"})
{ noremap = true, silent = true, desc = "[T]ask [P]ending" })
vim.api.nvim_set_keymap("n", "<LocalLeader>th", "<Plug>(neorg.qol.todo-items.todo.task-on_hold)",
{ noremap = true, silent = true, desc = "[T]ask on [H]old"})
{ noremap = true, silent = true, desc = "[T]ask on [H]old" })
vim.api.nvim_set_keymap("n", "<LocalLeader>tc", "<Plug>(neorg.qol.todo-items.todo.task-cancelled)",
{ noremap = true, silent = true, desc = "[T]ask on [C]ancelled"})
{ noremap = true, silent = true, desc = "[T]ask on [C]ancelled" })
vim.api.nvim_set_keymap("n", "<LocalLeader>tr", "<Plug>(neorg.qol.todo-items.todo.task-recurring)",
{ noremap = true, silent = true, desc = "[T]ask on [R]ecurring"})
{ noremap = true, silent = true, desc = "[T]ask on [R]ecurring" })
vim.api.nvim_set_keymap("n", "<LocalLeader>ti", "<Plug>(neorg.qol.todo-items.todo.task-important)",
{ noremap = true, silent = true, desc = "[T]ask on [I]mportant"})
{ noremap = true, silent = true, desc = "[T]ask on [I]mportant" })

View File

@ -81,5 +81,5 @@ vim.keymap.set('n', '<leader>sb', require('telescope.builtin').lsp_document_symb
-- vim telescope
vim.keymap.set('n', '<leader>gc', require('telescope.builtin').git_commits, { desc = '[G]it [C]ommits' })
vim.keymap.set('n', '<leader>gs', require('telescope.builtin').git_status, { desc = '[G]it [S]tatus' })
vim.keymap.set({'n', 'x'}, '<leader>gB', require('telescope.builtin').git_bcommits, { desc = '[G]it [B]commits' })
vim.keymap.set({ 'n', 'x' }, '<leader>gB', require('telescope.builtin').git_bcommits, { desc = '[G]it [B]commits' })
vim.keymap.set('n', '<leader>gb', require('telescope.builtin').git_branches, { desc = '[G]it [B]ranches' })

View File

@ -4,8 +4,8 @@ vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash', 'norg', 'norg_meta', 'gdscript' },
ignore_install = {'latex', 'tex', 'markdown'},
disable = {'latex', 'tex', 'markdown'},
ignore_install = { 'latex', 'tex', 'markdown' },
disable = { 'latex', 'tex', 'markdown' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
@ -15,7 +15,7 @@ vim.defer_fn(function()
highlight = { enable = true },
indent = {
enable = true,
disable = {'javascript'}
disable = { 'javascript' }
},
incremental_selection = {
enable = true,