aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBonaBeavis <gordian.dziwis@gmail.com>2021-02-22 13:14:25 +0100
committerKiyan <yazdani.kiyan@protonmail.com>2021-02-22 18:17:46 +0100
commitbe9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3 (patch)
treed0c01310763198266fdfe465e03526b35ecaf3a8
parentAdd "v", "V", "<C-v>" as valid options of `selection_mode`. (diff)
downloadnvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.tar
nvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.tar.gz
nvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.tar.bz2
nvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.tar.lz
nvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.tar.xz
nvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.tar.zst
nvim-treesitter-be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3.zip
Fix indent size
-rw-r--r--lua/nvim-treesitter/indent.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/indent.lua b/lua/nvim-treesitter/indent.lua
index 5c8f79f38..7bd97b86d 100644
--- a/lua/nvim-treesitter/indent.lua
+++ b/lua/nvim-treesitter/indent.lua
@@ -40,7 +40,7 @@ local get_indents = utils.memoize_by_buf_tick(function(bufnr)
end)
local function get_indent_size()
- return vim.bo.softtabstop < 0 and vim.bo.shiftwidth or vim.bo.tabstop
+ return vim.bo.softtabstop > 0 and vim.bo.shiftwidth or vim.bo.tabstop
end
function M.get_indent(lnum)