-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
Description
If I have a table with multiple elements I cannot comment the first line without the comment going to newline:
local table = { -- My comment
elem1 = {},
elem2 = {}
}
local table = { --[[ My comment ]]
elem1 = {},
elem2 = {}
}Becomes:
local table = {
-- My comment
elem1 = {},
elem2 = {}
}
local table = {
--[[ My comment ]]
elem1 = {},
elem2 = {}
}In neovim the option foldmethod set to "marker" works badly because of this. Say my marker is -->--, it will go to newline and the fold will not have the text of the first line of the table as its description.