mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
Update lua/nvim-treesitter/indent.lua
Co-authored-by: Kiyan <yazdani.kiyan@protonmail.com>
This commit is contained in:
parent
b9069a81b9
commit
66f33ddd8b
2 changed files with 2 additions and 4 deletions
|
|
@ -160,8 +160,7 @@ function M.get_indent(lnum)
|
||||||
indent = indent + indent_size * 1
|
indent = indent + indent_size * 1
|
||||||
else
|
else
|
||||||
local _, o_scol = o_delim_node:start()
|
local _, o_scol = o_delim_node:start()
|
||||||
o_scol = o_scol + (metadata.increment or 1)
|
return math.max(indent, 0) + o_scol + (metadata.increment or 1)
|
||||||
return math.max(indent, 0) + o_scol
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,7 @@ local run = Runner:new(it, "tests/indent/r", {
|
||||||
describe("indent R:", function()
|
describe("indent R:", function()
|
||||||
describe("whole file:", function()
|
describe("whole file:", function()
|
||||||
run:whole_file(".", {
|
run:whole_file(".", {
|
||||||
expected_failures = {
|
expected_failures = {},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue