textobj: little refactor

This commit is contained in:
Thomas Vigouroux 2020-04-23 12:15:03 +02:00
parent c62685841e
commit 7c7d4e5270
2 changed files with 14 additions and 13 deletions

View file

@ -75,6 +75,8 @@ function M.setup_commands(mod, commands)
})
api.nvim_command(table.concat(parts, " "))
end
end
--- Gets the smallest scope which contains @param node
function M.smallest_containing_scope(node, bufnr)
local bufnr = bufnr or api.nvim_get_current_buf()