Commit graph

698 commits

Author SHA1 Message Date
kiyan
8b748a7570 chore: cleanup main file, move statusline in module 2022-07-18 15:44:59 +02:00
Kiyan
91ee9e7376
fix(typo): utils.create_or_resue_writable_dir -> reuse (#3194) 2022-07-18 12:43:31 +02:00
Kiyan
7e0651cd56
fix(indent): set only one autocmd for binding indentexpr (#3190) 2022-07-17 08:23:51 +02:00
Princeton Ferro
f3c309db4e feat(vala)!: switch to @vala-lang parser 2022-07-09 16:22:51 +02:00
smjonas
013c744b06 fix: avoid installing parsers multiple times when using auto_install 2022-07-08 22:02:36 +02:00
Jonas Strittmatter
365f0eb75f
feat: add option to auto-install missing parsers (#3130) 2022-07-08 07:36:54 +00:00
derekstride
8927588e47 Initial SQL support 2022-07-08 00:15:40 +02:00
Access
4b5966c81a
add qmljs (#3126) 2022-07-07 16:33:47 +02:00
Christian Clason
225b474560 chore: reformat with Stylua 0.14.0 2022-07-07 09:18:05 +02:00
Stephan Seitz
f69b1ebd7a docs: add description to markdown/markdown_inline in README 2022-06-28 23:20:47 +02:00
PolarMutex
b8459df74d
feat(beancount): support folding org headers (#3078)
requires beancount parser update

Co-authored-by: Brian Ryall <brian@brianryall.xyz>
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
2022-06-28 10:44:38 +02:00
Alex Pinkus
556388b069
feat(swift): compile the grammar from the main branch (#3068)
The `with-generated-files` branch uses ABI 13 and therefore doesn't
benefit from the ABI 14 speed improvements.
2022-06-26 20:18:22 +02:00
Matthias Deiml
002084b1be
feat(markdown)!: switch to split parser (#3048)
* switch to split markdown parser with separate block and inline parsers to improve performance
* add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212)
* split markdown queries into block and inline ones and add the injection for inline into block grammar
* add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory)

BREAKING CHANGE: downstream queries need to be adapted to new parser
2022-06-26 18:02:29 +02:00
Stephan Seitz
d810c38634 Chore: remove prefix from parser "location" property
This was very confusing when using the location property as it
always had to start with "tree-sitter-<lang>" for no real reason.
2022-06-25 12:01:22 +02:00
Duncan McDougall
901ffe1a36
Add support for custom parser install locations #2959 (#3031) 2022-06-20 22:50:07 +02:00
Brian Albert Monroe
23ca66d8ca Add rnoweb to the parsers.lua file 2022-06-19 21:45:19 +02:00
Christian Clason
919da0d7a8 docs(swift): list alex-pinkus as maintainer 2022-06-19 15:02:47 +02:00
Bruno BELANYI
ef385991b6 feat(tiger): initial support 2022-06-14 22:34:03 +02:00
Alexej Kowalew
8aeb7ad5dc
make ft_to_lang work for csharp (#2989) 2022-06-05 13:04:57 +02:00
Christian Clason
b922b2c3db fix(health): update to upstream changes
The `health` module was moved to `vim.health` in https://github.com/neovim/neovim/pull/18720
2022-06-02 12:56:57 +02:00
Christian Clason
b3370eb40d fix(r): add external scanner 2022-05-28 17:26:05 +02:00
Stephan Seitz
c19d14f395 parser(vlang): fix location of remote repo 2022-05-21 13:48:58 +02:00
tami5
010f364295 feat(vlang): initial support
Add support for vlang filetypes.

- [ ] Highlight `C` as builtin variable. This is FFI in vlang land,
  where C act like extern and access c functions. The vlang parser does
  some extension between C function calls and arguments but I believe
  highlighting C as builtin variable is sufficient indicator for now. I
  tried to use offset! but failed. Any suggestions?
- [ ] Set up parser url. the vlang parser is located within [vls] repo. Is
  installing from nested repo supported? `tree_sitter_v/src/parser.c`?

[vls]: https://github.com/vlang/vls/tree/master/tree_sitter_v

cc @elianiva @theHamsta
2022-05-21 13:48:58 +02:00
kiyan
c2ec0cac81 fix(commands): add -bar to allow other commands
addresses #2920
2022-05-14 12:58:07 +02:00
Nick Pezza
bcf091d865 Add embedded template to support ERB files 2022-05-05 01:34:59 +02:00
Christian Clason
1f508ff394 fixup: separate augroups for modules 2022-04-30 16:08:01 +02:00
Christian Clason
07eb437bb1 refactor!: update to Neovim 0.7 APIs
* set highlight groups via nvim_set_hl
* define autocommands via nvim_create_autocmd
* port plugin/nvim-treesitter.vim to Lua
* port healthcheck to Lua
2022-04-30 16:08:01 +02:00
Christian Clason
bc25a6a5c4 chore!: remove ensure_installed='maintained'
Removes all support (and tests) for the parser category "maintained", as
this is no longer a useful category.

BREAKING CHANGE: replace `ensure_installed='maintained'` by an explicit
list of parsers, or use `'all'` (not recommended).
2022-04-30 11:42:46 +02:00
francisco souza
1d5e4f3aa1 feat(proto): add parser
Related to #2307.
2022-04-28 00:05:57 +02:00
Graham Bates
7a01241ba6 feat: add m68k parser and queries 2022-04-27 16:54:38 +02:00
TerseTears
24f99166ed Add org parser 2022-04-23 13:55:05 +02:00
francisco souza
44b7c81002 fix(ts_utils): fix swap_nodes after get_node_text change
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.
2022-04-21 23:57:35 +02:00
Nir Tzachar
62fa8f77c4 adapt to vim.treesitter.query.get_node_text 2022-04-19 16:28:41 +02:00
Christian Clason
a8bce851bf fixup: restore old implementation 2022-04-18 18:50:46 +02:00
ranjithshegde
2490a8bbca fix(statusline): adjust to the new API (query) 2022-04-18 17:52:18 +02:00
Christian Clason
2248b64781 fix(statusline): don't use deprecated function 2022-04-18 15:36:28 +02:00
Stephan Seitz
c3848e713a chore: deprecate ts_utils.get_node_text 2022-04-18 14:17:51 +02:00
Stephan Seitz
21ac88b955 chore!: remove compat module for vim.ui 2022-04-18 14:17:22 +02:00
Christian Clason
facc6fdbe1 feat(swift): switch to branch with generated files 2022-04-18 11:49:29 +02:00
Christian Clason
a189323454 chore: bump minimal Nvim version to 0.7 and check
Checks minimal version in `:checkhealth nvim-treesitter`

Also recommend nightlies
2022-04-16 11:13:32 +02:00
Marcus Caisey
6a437db012 remove ignore_child_trees from get_node_at_position 2022-04-16 10:42:18 +02:00
Marcus Caisey
9dff7c2d45 add ignore_injected_langs to get_node_at_cursor 2022-04-16 10:42:18 +02:00
Emilia Simmons
76d1042b31 Format with stylua 2022-04-15 22:00:23 +02:00
Emilia Simmons
56083dd56f fix: properly select name in revision archive 2022-04-15 22:00:23 +02:00
Konrad Bochnia
cc83e23a2a fix: remove ftdetect, Fix struct highlight for wgsl 2022-04-11 23:16:19 +02:00
Konrad Bochnia
1a58c71b73 Add WGSL parser 2022-04-11 23:16:19 +02:00
6cdh
7fffab173c Fix nvim-treesitter CI 2022-04-10 13:51:59 +02:00
6cdh
46dc8b8f40 Added scheme support 2022-04-10 13:51:59 +02:00
Christian Clason
acd01551a3 chore!: deprecate ensure_installed=maintained
BREAKING CHANGE: specify explicit list or use `ensure_installed='all'`
(not recommended)
2022-04-10 13:24:57 +02:00
kiyan
7141393f12 fix(modules): enabling disabling per buffer and globally
When a module is disabled by default in the config, running
TSBufEnable will not enable the module because the is_enabled
function will always return false, thus the module not being enabled.
Also, disabling/enabling the buffers is flaky.

This commit adds per buffer check when the module is not disabled. It
also makes the enable and disable more indempotent.

i've also renamed TS*All to TS*.

Fixes #2754
2022-04-10 11:10:12 +02:00