nvim-neorg / neorg

Modernity meets insane extensibility. The future of organizing your life in Neovim.
GNU General Public License v3.0
6.15k stars 208 forks source link

list item indentation on wrong level #1124

Open Wiener234 opened 9 months ago

Wiener234 commented 9 months ago

Prerequisites

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

max397574 commented 9 months ago

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.

Wiener234 commented 9 months ago

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.

max397574 commented 9 months ago

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

champignoom commented 8 months ago

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

image can't reproduce

Wiener234 commented 8 months ago

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

Wiener234 commented 8 months ago

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

Wiener234 commented 8 months ago

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.