summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/locals.lua
AgeCommit message (Collapse)Author
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