summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/locals.lua
diff options
context:
space:
mode:
authorThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-19 15:45:28 +0200
committerGitHub <noreply@github.com>2020-06-19 15:45:28 +0200
commit516671fe9f9de98d27024e22c014adc535b56dc7 (patch)
treefb9e1984ed56efeedb05e9adbf5041d2ce390516 /lua/nvim-treesitter/locals.lua
parent772aa4c169969e56fd3f1208d1d6b42cd799b74a (diff)
parentcf72524b2f7e3868ea74037004913af6f935f126 (diff)
Merge pull request #89 from kyazdani42/refacto/remove-buf-state-and-api
refacto: remove buf state and api
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
-rw-r--r--lua/nvim-treesitter/locals.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua
index 313d7655..cbea8910 100644
--- a/lua/nvim-treesitter/locals.lua
+++ b/lua/nvim-treesitter/locals.lua
@@ -5,7 +5,7 @@ local api = vim.api
local ts = vim.treesitter
local queries = require'nvim-treesitter.query'
-local utils = require'nvim-treesitter.utils'
+local parsers = require'nvim-treesitter.parsers'
local M = {
locals = {}
@@ -18,7 +18,7 @@ function M.collect_locals(bufnr)
local query = queries.get_query(ft, 'locals')
if not query then return end
- local parser = utils.get_parser(bufnr, ft)
+ local parser = parsers.get_parser(bufnr, ft)
if not parser then return end
local root = parser:parse():root()