Skip to content

Commit bc6f5db

Browse files
committed
Enable paragraph movement for visual mode
1 parent 5aed4b7 commit bc6f5db

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

lua/orgmode/config/defaults.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ return {
123123
org_move_subtree_up = '<Leader>oK',
124124
org_move_subtree_down = '<Leader>oJ',
125125
org_export = '<Leader>oe',
126-
org_next_visible_heading = '}',
127-
org_previous_visible_heading = '{',
126+
org_next_visible_heading = {
127+
n = '}',
128+
x = '}',
129+
},
130+
org_previous_visible_heading = {
131+
n = '{',
132+
x = '{',
133+
},
128134
org_forward_heading_same_level = ']]',
129135
org_backward_heading_same_level = '[[',
130136
outline_up_heading = 'g{',

lua/orgmode/config/mappings.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,14 @@ return {
6767
org_move_subtree_up = { 'org_mappings.move_subtree_up' },
6868
org_move_subtree_down = { 'org_mappings.move_subtree_down' },
6969
org_export = { 'org_mappings.export' },
70-
org_next_visible_heading = { 'org_mappings.next_visible_heading' },
71-
org_previous_visible_heading = { 'org_mappings.previous_visible_heading' },
70+
org_next_visible_heading = {
71+
n = { 'org_mappings.next_visible_heading' },
72+
x = { 'org_mappings.next_visible_heading' },
73+
},
74+
org_previous_visible_heading = {
75+
n = { 'org_mappings.previous_visible_heading' },
76+
x = { 'org_mappings.previous_visible_heading' },
77+
},
7278
org_forward_heading_same_level = { 'org_mappings.forward_heading_same_level' },
7379
org_backward_heading_same_level = { 'org_mappings.backward_heading_same_level' },
7480
outline_up_heading = { 'org_mappings.outline_up_heading' },

0 commit comments

Comments
 (0)