mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
textobj: little refactor
This commit is contained in:
parent
c62685841e
commit
7c7d4e5270
2 changed files with 14 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue