neorg icon indicating copy to clipboard operation
neorg copied to clipboard

list item indentation on wrong level

Open Wiener234 opened this issue 2 years ago • 7 comments

Prerequisites

  • [X] I am using the latest stable release of Neovim
  • [X] I am using the latest version of the plugin

Neovim Version

0.10.0-dev

Neorg setup

require('neorg').setup{

load = {
	["core.defaults"] = {},
	["core.concealer"] = {},
	["core.export"] = {},
	["core.ui"] = {},
	["core.ui.calendar"] = {},

            ["core.export.markdown"] = {
		config = {
			extensions = "all",
		},
	},

            ["core.dirman"] = {
		config = {
			workspaces = {
				notes = "~/Nextcloud/Notizen/notes",
				nvim_conf = "~/nvim_conf_doc"
			},
			default_workspace = "notes",
		},
	},

            ["core.journal"] = {
            config = {
	          template_name = "journal_template.norg",
},

},

}, }

Actual behavior

When using a list with multiple lines belonging to one item in a heading of level three or deeper it gets the wrong indentation. It looks like it doesnt belong to the list item anymore and has the indentation level of the previous heading. image

Expected behavior

image

Steps to reproduce

Make a list in a heading of level 3 or deeper and add an item with multiple lines.

Potentially conflicting plugins

No response

Other information

No response

Help

No

Implementation help

No response

Wiener234 avatar Oct 22 '23 11:10 Wiener234

this isn't an issue. Items are ending on a linebreak. There is something you can put there to prevent that though. I don't know what the exact characters are but you can read about it in the specs.

max397574 avatar Oct 23 '23 05:10 max397574

If I understand the specs in the repo norg-specs/1.0-specification corect I should't need any extra character and list item should't end on a line break.

Wiener234 avatar Oct 23 '23 06:10 Wiener234

🤔 could be that this was changed somewhen then. We'll just wait for vhyrro to resolve this

max397574 avatar Oct 23 '23 06:10 max397574

Make a list in a heading of level 3 or deeper and add an item with multiple lines.

image can't reproduce

champignoom avatar Nov 09 '23 06:11 champignoom

Any idea what causes that on my system? I can reproduce it with the same config on another system.

Wiener234 avatar Nov 09 '23 09:11 Wiener234

The problem is somewhere in my config when i get the time i will dig trough it.

Wiener234 avatar Nov 09 '23 10:11 Wiener234

I found the problem. When using

vim.opt.expandtab = false
vim.opt.tabstop = 4

the problem occurs after heading level 3. Setting tabstop to 8 the problem occurs after heading level 7. With tabstop 2 the indentation acts even more different.

Solution i found is not using expandtab=false.

Wiener234 avatar Nov 21 '23 22:11 Wiener234