run :Format
This commit is contained in:
parent
66137fdea3
commit
37f15e1b16
@ -18,8 +18,10 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||
vim.o.spelllang = 'en'
|
||||
vim.o.formatoptions = "qj"
|
||||
-- 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<CR><CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy<CR><CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set('', '<LocalLeader>msy', ':w !pandoc -f markdown+emoji -t html5 -s | wl-copy<CR><CR>',
|
||||
{ noremap = true, silent = true })
|
||||
vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy<CR><CR>',
|
||||
{ noremap = true, silent = true })
|
||||
end
|
||||
})
|
||||
|
||||
@ -58,7 +60,8 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
vim.g.vimtex_view_method = 'zathura'
|
||||
vim.g.maplocalleader = ' '
|
||||
-- Legacy shortcut from my vim-latexsuite days
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ls", ":VimtexView<CR>", {noremap = true, silent = true, desc = 'View [L]atex Document'})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ls", ":VimtexView<CR>",
|
||||
{ noremap = true, silent = true, desc = 'View [L]atex Document' })
|
||||
|
||||
vim.o.foldmethod = 'expr'
|
||||
vim.o.foldexpr = 'vimtex#fold#level(v:lnum)'
|
||||
|
@ -211,7 +211,8 @@ require('lazy').setup({
|
||||
-- Pandoc
|
||||
'vim-pandoc/vim-pandoc-syntax',
|
||||
-- neorg
|
||||
{ 'nvim-neorg/neorg',
|
||||
{
|
||||
'nvim-neorg/neorg',
|
||||
build = ':Neorg sync-parsers',
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
|
@ -25,10 +25,8 @@ keymap('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic mess
|
||||
keymap('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
|
||||
keymap('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' })
|
||||
|
||||
keymap("n", "<Leader>y", '"+y', {noremap = true, silent = true})
|
||||
keymap("v", "<Leader>y", '"+y', {noremap = true, silent = true})
|
||||
keymap("n", "<Leader>p", '"+p', {noremap = true, silent = true})
|
||||
keymap("v", "<Leader>p", '"+p', {noremap = true, silent = true})
|
||||
keymap({ "n", "v" }, "<Leader>y", '"+y', { noremap = true, silent = true, desc = "[Y]ank to system clipboard" })
|
||||
keymap({ "n", "v" }, "<Leader>p", '"+p', { noremap = true, silent = true, desc = "[P]ast from system clipboard" })
|
||||
|
||||
-- z0…z9 to open folds to a certain level
|
||||
for i = 0, 9 do
|
||||
|
@ -7,16 +7,23 @@ vim.api.nvim_create_autocmd({"FileType"}, {
|
||||
callback = function()
|
||||
vim.g.maplocalleader = ' '
|
||||
vim.o.conceallevel = 2
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nr", ":Neorg return<CR>", {noremap = true, silent = true, desc = "[N]eorg [R]eturn"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nr", ":Neorg return<CR>",
|
||||
{ noremap = true, silent = true, desc = "[N]eorg [R]eturn" })
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ni", ":Neorg index<CR>", {noremap = true, silent = true, desc = "[N]eorg [I]ndex"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nm", ":Neorg inject-metadata<CR>", {noremap = true, silent = true, desc = "[N]eorg insert [M]etadata"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nj", ":Neorg journal toc open<CR>", {noremap = true, silent = true, desc = "[N]eorg [J]ournal"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nt", ":Neorg journal today<CR>", {noremap = true, silent = true, desc = "[N]eorg [T]oday"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ns", ":Neorg journal tomorrow<CR>", {noremap = true, silent = true, desc = "Neorg tomorrow"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ny", ":Neorg journal yesterday<CR>", {noremap = true, silent = true, desc = "[N]eorg [Y]esterday"})
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ni", ":Neorg index<CR>",
|
||||
{ noremap = true, silent = true, desc = "[N]eorg [I]ndex" })
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nm", ":Neorg inject-metadata<CR>",
|
||||
{ noremap = true, silent = true, desc = "[N]eorg insert [M]etadata" })
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nj", ":Neorg journal toc open<CR>",
|
||||
{ noremap = true, silent = true, desc = "[N]eorg [J]ournal" })
|
||||
vim.api.nvim_set_keymap("n", "<Leader>nt", ":Neorg journal today<CR>",
|
||||
{ noremap = true, silent = true, desc = "[N]eorg [T]oday" })
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ns", ":Neorg journal tomorrow<CR>",
|
||||
{ noremap = true, silent = true, desc = "Neorg tomorrow" })
|
||||
vim.api.nvim_set_keymap("n", "<Leader>ny", ":Neorg journal yesterday<CR>",
|
||||
{ noremap = true, silent = true, desc = "[N]eorg [Y]esterday" })
|
||||
|
||||
local neorg = require('neorg')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user