mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
Refactor locals.lua:
- shared query group stuff -> query.lua - local-specific stuff from ts_utils -> locals.lua
This commit is contained in:
parent
a4e2692c7b
commit
8cf2dc7f9a
11 changed files with 290 additions and 295 deletions
|
|
@ -2,6 +2,7 @@ local api = vim.api
|
|||
|
||||
local configs = require'nvim-treesitter.configs'
|
||||
local ts_utils = require'nvim-treesitter.ts_utils'
|
||||
local locals = require'nvim-treesitter.locals'
|
||||
local parsers = require'nvim-treesitter.parsers'
|
||||
|
||||
local M = {}
|
||||
|
|
@ -74,7 +75,7 @@ M.node_incremental = select_incremental(function(node)
|
|||
end)
|
||||
|
||||
M.scope_incremental = select_incremental(function(node)
|
||||
return ts_utils.containing_scope(node:parent() or node)
|
||||
return locals.containing_scope(node:parent() or node)
|
||||
end)
|
||||
|
||||
function M.node_decremental()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue