This commit is contained in:
Rustum Zia 2026-02-26 18:06:37 +01:00
parent ed14c4d855
commit 43f458a153

View file

@ -132,7 +132,7 @@ local get_language_shiftwidth = memoize(function(bufnr, lang)
-- filetype.get_option will default to the global value for the option
-- if (1) there is no local equivalent set, or (2) the filetype does not exist
---@type integer
local filetype_shiftwidth = vim.filetype.get_option(ft, 'shiftwidth')
local filetype_shiftwidth = vim.filetype.get_option(ft, 'shiftwidth')--[[@as integer]]
if filetype_shiftwidth == 0 then
filetype_shiftwidth = vim.filetype.get_option(ft, 'tabstop')--[[@as integer]]
end