diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 13:45:33 +0200 |
|---|---|---|
| committer | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 13:45:33 +0200 |
| commit | 38af29a912a607d3d703f57b840bfc61671679cc (patch) | |
| tree | 28c4fca6a638b28c923088e240dce064211cb349 /lua/nvim-treesitter/locals.lua | |
| parent | 772aa4c169969e56fd3f1208d1d6b42cd799b74a (diff) | |
refacto: remove buf_state
- remove buf_state and related code
- add get_node_at_cursor()
- better incremental selection (code is localized)
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
| -rw-r--r-- | lua/nvim-treesitter/locals.lua | 4 |
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() |
