diff options
| author | BonaBeavis <gordian.dziwis@gmail.com> | 2021-02-22 13:14:25 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-02-22 18:17:46 +0100 |
| commit | be9c4ab36ded5adb8c30c3d6a89322e2ec1d8da3 (patch) | |
| tree | d0c01310763198266fdfe465e03526b35ecaf3a8 /lua/nvim-treesitter/indent.lua | |
| parent | 079dafa36efa5499e2e6dc5ddf89f7f0385fa356 (diff) | |
Fix indent size
Diffstat (limited to 'lua/nvim-treesitter/indent.lua')
| -rw-r--r-- | lua/nvim-treesitter/indent.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/indent.lua b/lua/nvim-treesitter/indent.lua index 5c8f79f3..7bd97b86 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) |
