Skip to content

Commit 5ef1041

Browse files
authored
Fix wrong tag_column indentation (#373)
1 parent 7b96f5d commit 5ef1041

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lua/orgmode/config/defaults.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ return {
2121
org_priority_default = 'B',
2222
org_priority_lowest = 'C',
2323
org_archive_location = '%s_archive::',
24-
org_tags_column = 80,
24+
org_tags_column = -80,
2525
org_use_tag_inheritance = true,
2626
org_tags_exclude_from_inheritance = {},
2727
org_hide_leading_stars = false,

lua/orgmode/treesitter/headline.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function Headline:set_tags(tags)
6868
to_col = math.abs(to_col) - tags_width
6969
end
7070

71-
local spaces = math.max(to_col - (vim.api.nvim_strwidth(txt) + stars:len()) - tags_width, 1)
71+
local spaces = math.max(to_col - (vim.api.nvim_strwidth(txt) + stars:len()), 1)
7272
text = string.rep(' ', spaces) .. tags
7373
end
7474

tests/plenary/ui/mappings_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ describe('Mappings', function()
16041604
}, vim.api.nvim_buf_get_lines(0, 0, 6, false))
16051605
end)
16061606

1607-
it('should update headline cookies when updaing checkboxes', function()
1607+
it('should update headline cookies when updating checkboxes', function()
16081608
helpers.load_file_content({
16091609
'* Test orgmode [/]',
16101610
'- [ ] checkbox item',

0 commit comments

Comments
 (0)