chores(all): format
This commit is contained in:
parent
6851e16bcf
commit
8f04c0e04c
@ -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,
|
||||
})
|
||||
|
||||
|
@ -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
|
||||
|
@ -191,7 +191,7 @@ require('lazy').setup({
|
||||
},
|
||||
|
||||
-- "gc" to comment visual regions/lines
|
||||
{ 'numToStr/Comment.nvim', opts = {} },
|
||||
{ 'numToStr/Comment.nvim', opts = {} },
|
||||
|
||||
-- Fuzzy Finder (files, lsp, etc)
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ local on_attach = function(_, bufnr)
|
||||
|
||||
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
|
||||
nmap('<leader>c', vim.lsp.buf.code_action, '[C]ode action') -- NOTE: to see if ca is needed
|
||||
nmap('<leader>f', function() -- https://stackoverflow.com/a/74303272
|
||||
nmap('<leader>f', function() -- https://stackoverflow.com/a/74303272
|
||||
vim.lsp.buf.code_action({
|
||||
filter = function(a)
|
||||
return a.isPreferred
|
||||
|
@ -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
|
||||
|
@ -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" })
|
||||
|
@ -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' })
|
||||
|
@ -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,
|
||||
|
@ -1,21 +1,21 @@
|
||||
local options = {
|
||||
plugins = {
|
||||
marks = true, -- shows a list of your marks on ' and `
|
||||
marks = true, -- shows a list of your marks on ' and `
|
||||
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
|
||||
-- the presets plugin, adds help for a bunch of default keybindings in Neovim
|
||||
-- No actual key bindings are created
|
||||
spelling = {
|
||||
enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
|
||||
enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
|
||||
suggestions = 20, -- how many suggestions should be shown in the list?
|
||||
},
|
||||
presets = {
|
||||
operators = false, -- adds help for operators like d, y, ...
|
||||
motions = true, -- adds help for motions
|
||||
operators = false, -- adds help for operators like d, y, ...
|
||||
motions = true, -- adds help for motions
|
||||
text_objects = false, -- help for text objects triggered after entering an operator
|
||||
windows = true, -- default bindings on <c-w>
|
||||
nav = true, -- misc bindings to work with windows
|
||||
z = true, -- bindings for folds, spelling and others prefixed with z
|
||||
g = true, -- bindings for prefixed with g
|
||||
windows = true, -- default bindings on <c-w>
|
||||
nav = true, -- misc bindings to work with windows
|
||||
z = true, -- bindings for folds, spelling and others prefixed with z
|
||||
g = true, -- bindings for prefixed with g
|
||||
},
|
||||
},
|
||||
-- add operators that will trigger motion and text object completion
|
||||
@ -38,27 +38,27 @@ local options = {
|
||||
},
|
||||
popup_mappings = {
|
||||
scroll_down = "<c-d>", -- binding to scroll down inside the popup
|
||||
scroll_up = "<c-u>", -- binding to scroll up inside the popup
|
||||
scroll_up = "<c-u>", -- binding to scroll up inside the popup
|
||||
},
|
||||
window = {
|
||||
border = "none", -- none, single, double, shadow
|
||||
position = "bottom", -- bottom, top
|
||||
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]. When between 0 and 1, will be treated as a percentage of the screen size.
|
||||
border = "none", -- none, single, double, shadow
|
||||
position = "bottom", -- bottom, top
|
||||
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]. When between 0 and 1, will be treated as a percentage of the screen size.
|
||||
padding = { 1, 2, 1, 2 }, -- extra window padding [top, right, bottom, left]
|
||||
winblend = 0, -- value between 0-100 0 for fully opaque and 100 for fully transparent
|
||||
zindex = 1000, -- positive value to position WhichKey above other floating windows.
|
||||
winblend = 0, -- value between 0-100 0 for fully opaque and 100 for fully transparent
|
||||
zindex = 1000, -- positive value to position WhichKey above other floating windows.
|
||||
},
|
||||
layout = {
|
||||
height = { min = 4, max = 25 }, -- min and max height of the columns
|
||||
width = { min = 20, max = 50 }, -- min and max width of the columns
|
||||
spacing = 3, -- spacing between columns
|
||||
align = "left", -- align columns left, center or right
|
||||
height = { min = 4, max = 25 }, -- min and max height of the columns
|
||||
width = { min = 20, max = 50 }, -- min and max width of the columns
|
||||
spacing = 3, -- spacing between columns
|
||||
align = "left", -- align columns left, center or right
|
||||
},
|
||||
ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label
|
||||
ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label
|
||||
hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "^:", "^ ", "^call ", "^lua " }, -- hide mapping boilerplate
|
||||
show_help = true, -- show a help message in the command line for using WhichKey
|
||||
show_keys = true, -- show the currently pressed key and its label as a message in the command line
|
||||
triggers = "auto", -- automatically setup triggers
|
||||
show_help = true, -- show a help message in the command line for using WhichKey
|
||||
show_keys = true, -- show the currently pressed key and its label as a message in the command line
|
||||
triggers = "auto", -- automatically setup triggers
|
||||
-- triggers = {"<leader>"} -- or specifiy a list manually
|
||||
-- list of triggers, where WhichKey should not wait for timeoutlen and show immediately
|
||||
triggers_nowait = {
|
||||
|
Loading…
Reference in New Issue
Block a user