aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-treesitter.lua
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-22/+0
|
* chore: cleanup main file, move statusline in modulekiyan2022-07-181-49/+3
|
* fix(ts_utils): fix swap_nodes after get_node_text changefrancisco souza2022-04-211-19/+1
| | | | | | | | | | | After some discussion, it looks like the easiest thing to do for now is to keep a private copy of get_node_text (just to skip the deprecation message) and invoke that, until core provides an equivalent function that can return the node content in a table representing the node "lines". Also fixes the statusline by calling the private version for get_node_text until a change is made in core.
* fix(statusline): adjust to the new API (query)ranjithshegde2022-04-181-7/+9
|
* fix(statusline): don't use deprecated functionChristian Clason2022-04-181-3/+3
|
* chore: deprecate ts_utils.get_node_textStephan Seitz2022-04-181-4/+0
|
* Use stylua for autoformat code (#1480)Santos Gallegos2021-07-041-25/+30
|
* Remove 'CI' guard (we can have now the newest version of nvim again)Stephan Seitz2020-12-071-2/+1
|
* fix: make version check work on non-CI environmentsStephan Seitz2020-11-231-2/+1
|
* fix: update interface following languagetree merge (#687)Thomas Vigouroux2020-11-231-1/+2
|
* Use utils get_node_text to get line content and trim all whitespaces.Kristijan Husak2020-10-111-3/+2
|
* Remove old statusline implementation with new one.Kristijan Husak2020-10-111-27/+4
|
* Add implementation for improved statusline. Closes #545.Kristijan Husak2020-10-111-0/+52
|
* Add warning about required Neovim versionStephan Seitz2020-09-031-0/+6
|
* feat(highlights): add is predicateSteven Sojka2020-08-161-0/+3
|
* feat(configs): dynamic module defintionsSteven Sojka2020-07-071-12/+4
|
* add used_by key to parserskiyan422020-06-291-2/+3
| | | | Enables the use of multiple filetypes for one parser.
* fix(statusline): don't call if no parserThomas Vigouroux2020-06-211-0/+1
|
* refactor: parser list and lang->ft/ft->langkiyan422020-06-201-2/+4
| | | | | | | - 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`
* refacto: remove buf_statekiyan422020-06-191-19/+2
| | | | | | - remove buf_state and related code - add get_node_at_cursor() - better incremental selection (code is localized)
* Expose internal api.kiyan422020-05-151-0/+10
| | | | | | | | - 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.
* refacto/feat: better handling of parser updateskiyan422020-05-121-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* feat: provide a statusline indicatorThomas Vigouroux2020-05-051-0/+31
| | | | | | | | | 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
* fix: config is enabled also checks parser existencekiyan422020-04-251-2/+1
|
* feat/refacto: improve configurationskiyan422020-04-241-16/+14
| | | | | | | | | | | - You should now get the configs through functions - Configs for languages are now inside a local object called parsers - You can get the parser installation configurations with `get_parser_configs` - A new object has been initialized inside configs to specify module config (called config). - Provide functions to enable/disable a module on one buffer - Provide functions to enable/disable a module on all buffers, and if filetype is specified, for specific filetype - Provide function to determine if module is activated for a specified filetype
* feat: syntax highlightingThomas Vigouroux2020-04-221-0/+3
|
* feat/refacto: add configs.lua, setup installkiyan422020-04-211-4/+11
| | | | | | | | - configs.lua holds the `repositories` data - install health moved to health.lua - plugins loads _root.setup() on startup - install and list command are available through vim > use them with `:TSInstall lang` and `:TSInstallInfo`
* feat: add parser listkiyan422020-04-201-0/+1
|
* perf: don't compute locals on buffer updatesThomas Vigouroux2020-04-191-6/+0
| | | | | | | Instead we lazily evaluate them on request. This allow two things : * better performances * being sure the locas are up to date
* feat: add locals to setup procedureThomas Vigouroux2020-04-191-0/+7
|
* add parser installerkiyan422020-04-191-0/+5
|
* feat: add parsers module and better match iterThomas Vigouroux2020-04-191-0/+3
| | | | | | | | | | | | | | | The `parsers` module manages parsers for us, for now only in a really basic way. iter_prepared_mathes iters on an enhanced versions of the matches, where captures are directly accessible via their names to allow things like : ((itentifier) @def.first (identifier) @def.last) To be handled like this in lua: match.def.first match.def.last Also adds a `set!` predicate to allow setting data within the prepared match (see queries/lua/locals.scm) for examples.
* feat: add empty setup functionThomas Vigouroux2020-04-181-0/+10
Will be used later to setup everything so that a language works properly in each situation.