summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter
AgeCommit message (Collapse)Author
2021-11-18Format with styluaSantos Gallegos
CI is failing for stylua due to this.
2021-11-12refactor: inherit jsongegoune
2021-11-12feat: add http parsergegoune
All credit goes to @NTBBloodbath. See: https://github.com/NTBBloodbath/rest.nvim/issues/75#issuecomment-960447966 Co-authored-by: NTBBloodbath <bloodbathalchemist@protonmail.com>
2021-11-12feat: get node at cursor of other winFabian David Schmidt
2021-11-12Add condition function to module configpatrick96
The function is called with the language and bufnr, if it returns false, the module is disabled for that buffer. This gives the user more fine-grained control over whether a module is started.
2021-11-11Ensure `ft_to_lang` supports multipart filetypes.Robert Jackson
This allows a given parser to directly implement a multipart filetype (like `glimmer` parser does for `html.handlebars`). If an exact match for the current filetype is found in the lookup table, it will be used; otherwise we look for just the first segment.
2021-11-11Add `html.handlebars` as a valid type for the glimmer parser.Robert Jackson
This filetype is in common use due to https://github.com/mustache/vim-mustache-handlebars/blob/master/ftdetect/handlebars.vim#L2
2021-11-08refactor: nitpickingSirisak Lueangsaksri
2021-11-08feat: sync install for `ensure_installed`Sirisak Lueangsaksri
2021-11-02chore: fix typosDundar Göc
2021-11-01Fix typo in locals.lua: vaild -> validStephan Seitz
2021-11-01Fix bugs in TSRangeStephan Seitz
- TSRange:new() was missing to extract the line from nvim_buf_get_lines - TSRange:parent() was only working when current buf == self.buf
2021-10-22Use wrapper around vim.notify with common optionsSantos Gallegos
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1927#issuecomment-947064843
2021-10-21Add zig as compiler for parsermaxxnino
2021-10-19Use vim.notify instead of print in some places (#1927)Santos Gallegos
2021-10-13Switch to official elixir-lang parserConnor Lay (Clay)
2021-10-11feat(healthcheck): support native lua healthchecks, and fixesJavier López
After neovim/neovim#15259 lua healthchecks are called directly and are prefered over neovim autoload ones. The discover of Lua ones requires the function to be named "check()". Also the mentioned PR changed the design of healthchecks to not use output capturing, therefore avoid printing and instead concatenate and call the health functions.
2021-10-07Add scala maintainerStevan Milic
Add fold for scala val definition to support type class entries
2021-10-07parsers: add D parserCezary Drożak
2021-10-07feat: add "experimental" key to parsersCezary Drożak
feat(ci): mark parsers as experimental in README
2021-10-03Added branch specificationBenjamin Graham
2021-10-03LLVM parser/highlighter addedBenjamin Graham
2021-10-03chore: use vim.ui.select for TSEditQuery if availableStephan Seitz
2021-10-03chore: print compiler version in healthcheckStephan Seitz
2021-10-01feat(install): add options `prefer_git` and `command_extra_args`Stephan Seitz
Fixes #1888
2021-09-24Use vim-range style (1-index based) when possible (#1841)Santos Gallegos
https://github.com/nvim-treesitter/nvim-treesitter/pull/1829 half fixed incremental selection for the vim parser, but other bugs still remain (infinite selection and skip selecting the root node). Problems can be replicated with these two files: (missing selecting the root node) ```vim set scrolloff=7 set scrolloff=7 ``` (infinite loop) ```vim set scrolloff=7 ``` The main problem is that we try to map the current selection range to a TS range, but the TS range of a node could include the EOL/EOL marks so it's impossible to know when to change the vim range to match the TS range, is more easy to transform the TS range to a vim range and do the comparison.
2021-09-21Swapping to the correct repoLucas Crownover
2021-09-21Adding perl parserLucas Crownover
2021-09-19Fix incremental selection for nodes that include EOLSantos Gallegos
From `:h setpos()` > If "col" is smaller than 1 then 1 is used. This can be tested with incremental selection on a vim file. ```vim set title ```
2021-09-19Support hjsonkghugo
2021-09-17parsers: add glsl parserStephan Seitz
2021-09-15New kotlin parserJoakker
2021-09-14chore: fix formatting in parsers.luaStephan Seitz
2021-09-14fix(lang): only use first part in multi-langThomas Vigouroux
2021-09-10fix(fennel): update parser and all the queriesOtto Modinos
2021-09-01Add tree-sitter-dot (#1770)rydesun
* Add tree-sitter-dot * Fix DOT highlights * highlights(DOT): add HTML string * Remove DOT ftdetect Vim and Neovim runtime have added DOT filetype detection * Update DOT highlights
2021-08-29Add tree-sitter-pioasm with highlights and injections (#1759)leo60228
* add tree-sitter-pioasm with highlights and injections * [docgen] Update README.md skip-checks: true * remove ada injection from pioasm * address review * remove unnecessary python predicate Co-authored-by: Github Actions <actions@github>
2021-08-25Add support for json5Joakker
2021-08-25Replaces curl argument: --no-progress-meter -> --silentEduardo Cuducos
Fix #1748
2021-08-24fix(dowload): don't display curl progressThomas Vigouroux
Fixes #1731
2021-08-22Query: allow to pass a list to get_capture_matches (#1693)Santos Gallegos
2021-08-20Fixed lua style issues, updated grammar version to fix macOS build issuesAndrew Helwer
2021-08-20Filetype is tlaAndrew Helwer
2021-08-20Added TLA+ grammar & queriesAndrew Helwer
2021-08-20Add jsx to javascript (#1696)Santos Gallegos
This is mainly so the playground doesn't error when opening the jsx query files.
2021-08-18Add HEEx language support, add missing commentstringsClay
2021-08-16feat: add support for vimThomas Vigouroux
2021-08-11Update new query and parser for zigmaxxnino
2021-08-08CI: fix update lockfile jobSantos Gallegos
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1661#issuecomment-894722369
2021-08-07feat: allow 'revision' override in parser config (#1661)Munif Tanjim