summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter
AgeCommit message (Collapse)Author
2020-07-08fix(refactor): highlight def perf issue fixSteven Sojka
2020-07-07feat(configs): dynamic module defintionsSteven 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-30fix ask installkiyan42
2020-06-30Define multiple query for a languagekiyan42
Allows using another query file for a language, or use a query file from another language
2020-06-30if/else in defining languageskiyan42
2020-06-30fix: remove goto statementskiyan42
2020-06-30update installer with sync and some fixeskiyan42
- add sync method for installing using `system` - remove `descriptions` in command configs - use install(lang) in ensure_installed and make it compatible
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-29add used_by key to parserskiyan42
Enables the use of multiple filetypes for one parser.
2020-06-27Merge pull request #102 from vigoux/fix-94Stephan Seitz
Separate queries with newlines
2020-06-26highlight: use custom highlight groupsThomas Vigouroux
2020-06-25continue installing if not reinstalling one parserkiyan42
2020-06-25install can take 'all' as parameterkiyan42
2020-06-25add command to install all parserskiyan42
2020-06-24fix(locals): compute locals after later tickSteven Sojka
2020-06-22rename and finish ft->lang migrationkiyan42
2020-06-21fix: separate queries with newlinesThomas Vigouroux
2020-06-21Fix bash parser urlSantos Gallegos
Not sure if this was on purpose or if it was a mistake
2020-06-21Merge pull request #90 from kyazdani42/fix/parser-names-as-filetypesKiyan Yazdani
refacto/fix: filetype / parser name distinction
2020-06-21Merge pull request #72 from doubleloop/pythonStephan Seitz
Updated python highlights
2020-06-21Updated python highlightsJakub Łuczyński
* allow for digits in constant names * removed redundant/conflicting rules * added missing hlmap * fixed escape_sequence * more explicit @constructor assignment * added rules for function decoration identifiers
2020-06-20refactor: parser list and lang->ft/ft->langkiyan42
- move parser list in `parsers.lua` - most `ft` variable where changed to `lang`, `ft` is only used on autocmd binding, and lang is used for everything else. Functions have been defined to make the switch between `ft` and `lang`
2020-06-19fix: declare parse names as their appropriate filetype and change clone urlkiyan42
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-06-15Fixup: Introduce base languages for queriesStephan Seitz
Use same argument for nvim_get_runtime_file for base language
2020-06-15Introduce base languages for queriesStephan Seitz
Some treesitter grammars just extend another treesitter grammar. This enables us to use the C queries also for C++. We only need to put additional queries in the C++ files.
2020-06-15Merge pull request #80 from steelsojka/feat/user-query-overridesKiyan Yazdani
feat(queries): allow user query overrides
2020-06-14Add tree-sitter-regexStephan Seitz
This might be interesting for injected highlighting
2020-06-14feat(queries): allow for user overridesSteven Sojka
2020-05-25feat: add syntax-based foldingThomas Vigouroux
2020-05-23Merge pull request #56 from theHamsta/python-localsThomas Vigouroux
Add python locals.scm
2020-05-22Remove postspaces and avoid one globalStephan Seitz
2020-05-17Introduce `@include`Stephan Seitz
2020-05-15install: allow installing multiple parsers at onceThomas Vigouroux
This allow commands like so : :TSInstall c rust lua python
2020-05-15Expose internal api.kiyan42
- add `exposed_state` to expose 'current_node' and 'cursor_pos' for a current buffer to the user. - add `get_buf_state` and `get_node_api` for users. - add documentation about api functions. - remove `node_movement` module which should be done in user side.
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-05-07feat: support suggested highlightsThomas Vigouroux
2020-05-05feat: provide a statusline indicatorThomas Vigouroux
It will show the current branch at the cursor going the tree as such. root->node->subnode->leaf If an argument is provided to `statusline`, then the tree will be truncated as follows : ..->subnode->subnode
2020-05-03Add 'nvim-treesitter/node-movement'Stephan Seitz
2020-05-02modules: move textobj to incremental_selectionThomas Vigouroux
As suggested in #37, rename the textobj module to incremental_selection. Also adds a utility function to get the config of a module.
2020-05-01Merge pull request #36 from theHamsta/community-parsersKiyan Yazdani
Add some more community parsers
2020-05-01Add some more community parsersStephan Seitz
The haskell one really takes long to compile
2020-05-01update docs for ensure installed, move modules config in config.moduleskiyan42