summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/locals.lua
AgeCommit message (Collapse)Author
2022-04-19adapt to vim.treesitter.query.get_node_textNir Tzachar
2022-04-18chore: deprecate ts_utils.get_node_textStephan Seitz
2021-11-02chore: fix typosDundar Göc
2021-11-01Fix typo in locals.lua: vaild -> validStephan Seitz
2021-07-21recurse_local_nodes: type check local_def to ensure it is a table (#1331)mads kjeldgaard
2021-07-04Use stylua for autoformat code (#1480)Santos Gallegos
2021-03-30refactor(all): language tree adaption (#1105)Steven Sojka
2021-02-27chore: remove useless code and indent fileskiyan
2020-11-23fix: update interface following languagetree merge (#687)Thomas Vigouroux
2020-11-03parser: only use parse to get a treeThomas Vigouroux
This will avoid using internal data.
2020-08-25fix(locals): add nil guard for definition id creationSteven Sojka
2020-08-16feat(definitions): allow setting of scopeSteven Sojka
2020-08-13fix(definitions): optimize and fix definition highlightingSteven Sojka
2020-08-11fix(locals): fix find definition implementation (#274)Steven Sojka
Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-07-16Refactor locals.lua:Stephan Seitz
- shared query group stuff -> query.lua - local-specific stuff from ts_utils -> locals.lua
2020-07-16Refactor: Add parsers.get_buf_langStephan Seitz
2020-07-15feat(textobjects): Add `start` to include preceding things like documentationStephan Seitz
2020-07-08fix(refactor): highlight def perf issue fixSteven Sojka
2020-07-05Allow arbitrary query files in locals.luaStephan Seitz
This is a preparation for `textobject` queries.
2020-07-05Make luacheck happyStephan Seitz
2020-06-30refactor(refactor): use higher local apis and some cleanupSteven Sojka
2020-06-30feat(refactor): highlight usages moduleSteven Sojka
2020-06-24fix(locals): compute locals after later tickSteven Sojka
2020-06-22rename and finish ft->lang migrationkiyan42
2020-06-19refacto: remove buf_statekiyan42
- remove buf_state and related code - add get_node_at_cursor() - better incremental selection (code is localized)
2020-05-12refacto/feat: better handling of parser updateskiyan42
features: - node_movement is moving between scopes. - add selection initialization from normal mode - add a decremental selection improvements: - attach to buffer to run tree parsing on change - run state update on CursorMoved - the buffer state is: ``` { cursor_pos = { row=row, col=col }, current_node = node_under_cursor, selection = { range = nil, -- activates when starting a selection nodes = {} -- filling up when starting an incremental selection }, parser = parser, -- parser for current buffer } ``` - refacto all the modules reliant on parsing the tree, update the current nodes, get the current nodes... fixes: - fix has_parser to look for .so libraries - fix should select the whole file when selection root in selection
2020-05-07fix: change locals extractionThomas Vigouroux
2020-04-26health(refactor): move checks inside health.luaThomas Vigouroux
2020-04-25textobj: add incremental node selectionThomas Vigouroux
2020-04-21feat: add checkhealthkiyan42
2020-04-19perf: don't compute locals on buffer updatesThomas Vigouroux
Instead we lazily evaluate them on request. This allow two things : * better performances * being sure the locas are up to date
2020-04-19fix: prepare injections mechanismThomas Vigouroux
2020-04-19style: avoid overindenting thingsThomas Vigouroux
2020-04-19feat: add locals to setup procedureThomas Vigouroux
2020-04-19feat: first version of localsThomas Vigouroux
Locals will be the main interface to treesitter, through some functions: get_definitions(bufnr) : returns all the definitions in bufnr get_scopes(bufnr): returns all definitions in bufnr get_references(bufnr): returns all references in bufnr