We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55cfe81 commit 5e1b21cCopy full SHA for 5e1b21c
lua/pretty-fold/init.lua
@@ -70,7 +70,8 @@ local function fold_text(config)
70
end
71
72
-- Calculate widths of the number column.
73
- local num_col_width = math.max( fn.strlen(fn.line('$')), wo.numberwidth )
+ local num_col_width = math.max( #tostring(api.nvim_buf_line_count(0)),
74
+ wo.numberwidth )
75
76
-- We can't calculate precisely the current foldcolumn width.
77
-- So we assume it has the maximum value taken from 'foldcolumn' option ...
0 commit comments