chore: remove useless code and indent files

This commit is contained in:
kiyan 2021-02-22 23:01:12 +01:00 committed by Kiyan
parent 91a89aa408
commit 9d57216c0d
10 changed files with 91 additions and 109 deletions

View file

@ -7,7 +7,7 @@ local parsers = require'nvim-treesitter.parsers'
local function get_byte_offset(buf, row, col)
return api.nvim_buf_get_offset(buf, row)
+ vim.fn.byteidx(api.nvim_buf_get_lines(buf, row, row + 1, false), col)
+ vim.fn.byteidx(api.nvim_buf_get_lines(buf, row, row + 1, false), col)
end
function TSRange.new(buf, start_row, start_col, end_row, end_col)