mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
lint
This commit is contained in:
parent
ed14c4d855
commit
43f458a153
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ local get_language_shiftwidth = memoize(function(bufnr, lang)
|
||||||
-- filetype.get_option will default to the global value for the option
|
-- 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
|
-- if (1) there is no local equivalent set, or (2) the filetype does not exist
|
||||||
---@type integer
|
---@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
|
if filetype_shiftwidth == 0 then
|
||||||
filetype_shiftwidth = vim.filetype.get_option(ft, 'tabstop')--[[@as integer]]
|
filetype_shiftwidth = vim.filetype.get_option(ft, 'tabstop')--[[@as integer]]
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue