Skip to content

Commit 76bdb0c

Browse files
committed
Added second argument to get_option_value for tabstop
1 parent 799dac2 commit 76bdb0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/markdown-toc/utils.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function M.process_heading(content, filepath, heading_level_to_match)
3737

3838
local indent = string.rep('\t', level)
3939
if expandtab then
40-
local tabstop = vim.api.nvim_get_option_value('tabstop')
40+
local tabstop =
41+
vim.api.nvim_get_option_value('tabstop', { scope = 'global' })
4142
indent = string.rep(' ', level * tabstop)
4243
end
4344

0 commit comments

Comments
 (0)