summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/ts_utils.lua
AgeCommit message (Collapse)Author
2021-02-27chore: remove useless code and indent fileskiyan
2021-02-21Add "v", "V", "<C-v>" as valid options of `selection_mode`.echasnovski
2021-02-21Add `selection_mode` argument to `ts_utils.update_selection()`.echasnovski
2021-01-08removed async changedtickBrian Shu
2021-01-08async buf_attachBrian Shu
2021-01-07removed async changedtickBrian Shu
2021-01-07async buf_attachBrian Shu
2020-11-23fix: update interface following languagetree merge (#687)Thomas Vigouroux
2020-10-19Treesitter indentkiyan42
also fixes the memoize_by_buf_tick function
2020-08-31feat(refactor.navigation): add navigation.goto_{next,previous}_usageStephan Seitz
2020-08-17Textobjects: set jump before going to adjacent_textobjectStephan Seitz
2020-08-17Textobjects: add swap featureStephan Seitz
2020-08-13fix(definitions): optimize and fix definition highlightingSteven Sojka
2020-07-27configs: attach on unknown parsers tooThomas Vigouroux
2020-07-20Fix #206: Use lsp.util.apply_text_edits for smart_renameStephan Seitz
2020-07-20Fixed to use normal! instead of normalSteve Vermeulen
2020-07-16Refactor locals.lua:Stephan Seitz
- shared query group stuff -> query.lua - local-specific stuff from ts_utils -> locals.lua
2020-07-16fix(ts_utils): be sure to parse to get rootThomas Vigouroux
Be sure to call `parser:parser()` to get a tree instead of getting the tree directly. This will not cost anything is the buffer is freshly parsed. Fixes #181
2020-07-15feat(textobjects): Add `start` to include preceding things like documentationStephan Seitz
2020-07-14Add textobjects moduleStephan Seitz
2020-07-13Add ts_utils.highlight_nodeStephan Seitz
2020-07-08fix(refactor): highlight def perf issue fixSteven Sojka
2020-07-05Make luacheck happyStephan Seitz
2020-06-30refactor(refactor): use higher local apis and some cleanupSteven Sojka
2020-06-30feat(refactor): add definition navigation moduleSteven Sojka
2020-06-30feat(refactor): add smart rename moduleSteven Sojka
2020-06-30feat(refactor): highlight usages moduleSteven Sojka
2020-06-19add winnr to get_node_at_cursorkiyan42
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