Orgmode mappings <C-M-(left,right)> to promote/demote subtree, diags no multiline
This commit is contained in:
@@ -168,10 +168,13 @@ require("lazy").setup({
|
|||||||
config = function()
|
config = function()
|
||||||
-- Setup orgmode
|
-- Setup orgmode
|
||||||
require('orgmode').setup({
|
require('orgmode').setup({
|
||||||
|
-- cf: https://github.com/nvim-orgmode/orgmode/blob/master/docs/configuration.org#mappings
|
||||||
mappings = {
|
mappings = {
|
||||||
org = {
|
org = {
|
||||||
org_move_subtree_up = { '<Leader>oK', '<C-M-Up>' },
|
org_move_subtree_up = { '<Leader>oK', '<C-M-Up>' },
|
||||||
org_move_subtree_down = { '<Leader>oJ', '<C-M-Down>' },
|
org_move_subtree_down = { '<Leader>oJ', '<C-M-Down>' },
|
||||||
|
org_promote_subtree = { '<s', '<C-M-Left>' },
|
||||||
|
org_demote_subtree = { '>s', '<C-M-Right>' },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- org_agenda_files = '~/orgfiles/**/*',
|
-- org_agenda_files = '~/orgfiles/**/*',
|
||||||
@@ -607,10 +610,6 @@ require("lazy").setup({
|
|||||||
use_icons_from_diagnostic = true,
|
use_icons_from_diagnostic = true,
|
||||||
enable_on_insert = true,
|
enable_on_insert = true,
|
||||||
show_all_diags_on_cursorline = true,
|
show_all_diags_on_cursorline = true,
|
||||||
multilines = {
|
|
||||||
enabled = true,
|
|
||||||
always_show = true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
|
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
|
||||||
|
|||||||
Reference in New Issue
Block a user