Commit graph

19 commits

Author SHA1 Message Date
Amaan Qureshi
0ec9a8e00c feat(zig)!: adapt to upstream parser change 2024-08-30 01:21:43 -04:00
Lewis Russell
7867da7314 ci: fixup 2024-07-02 17:22:15 +01:00
Lewis Russell
27e5488c13 ci: install treesitter
ci: add parsers cache

ci: NVIM_TS_SHA

ci: remove is_CI
2024-07-02 16:10:01 +01:00
Lewis Russell
a1d11bffa7 fix: all broken queries and tests 2024-07-02 10:22:03 +01:00
Lewis Russell
c827142b97 ci: get nvim-treesitter 2024-06-27 17:32:48 +01:00
Lewis Russell
d087b7a00c ci: set XDG_DATA_HOME 2024-06-27 17:31:37 +01:00
Lewis Russell
4ebc6b8e96 ci: install parsers 2024-06-27 17:30:24 +01:00
Lewis Russell
37da716804 feat(ci): check queries for all languages 2024-06-27 17:00:25 +01:00
Lewis Russell
f5036b95e6 ci: fix nvim version 2024-04-18 09:36:02 +01:00
Lewis Russell
f33905bf5a test: migrate to nvim-test
Also run the tests with tree-sitter highlighting enabled.
2024-02-14 15:48:50 +00:00
Daniel Kongsgaard
85cf977181
Update c queries and test (#363)
Co-authored-by: Lewis Russell <lewis6991@gmail.com>
2024-01-19 11:43:45 +00:00
Lewis Russell
49a14a2474 fix: remove parser in makefile recipe 2023-08-27 13:01:36 +01:00
Lewis Russell
da9d8e2638 ci: test nvim v0.9.1 2023-08-27 12:54:47 +01:00
Lewis Russell
53102ec44b fix: simplfy is_valid() 2023-05-17 10:31:30 +01:00
Jonathan Camilleri
a18efce760 test(cpp): add tests for cpp 2023-04-26 20:30:25 +01:00
Lewis Russell
6e53eecca4
feat!: (BREAKING PLEASE READ) use queries for determining context (#198)
This plugin has been significantly rewritten to use Treesitter
queries instead of patterns for determining context regions for
languages.

The main benefits of this change are:
- it is a much simpler implementation since we can leverage core APIs.
- it fits in more generally with the Treesitter eco-system.
- it allows configuration of contexts to be provided from multiples sources.
- it allows more sophisticated configuration of contexts since queries
  (with directives and predicates) are much more powerful than patterns.
- the query format should be usable for other editors.

The major downside of this new implementation is that it requires each
language to provide it's own query as opposed to using the general
purpose patterns. This means that some languages which had contexts
before may not have them now. If this is the case then please raise an
issue. Adding queries for a specific language is fairly simple but too
much work to implement for all 170+ parsers that exist.

This commits provides explicit support for:
  - bash
  - c
  - cpp
  - typescript
  - rust
  - json
  - lua
  - markdown
  - python
  - yaml
  - php
  - scala
  - teal
  - toml
  - vim

Please see the README for instructions on how to add support for other
languages.

This commit also drops explicit support for Nvim 0.7. If you still need
support for this version then you can use the `compat/0.7` release.
2023-03-08 13:17:20 +00:00
Saecki
b05cd9cbb9 test: topline mode 2022-06-20 12:37:08 +01:00
Lewis Russell
2837cd67cc
chore: add CI (#127) 2022-06-18 06:38:58 +01:00
Lewis Russell
420ff30aa1 Fix luacheck errors
- Fixed a bug with a mistyped variable reference
- Removed all unused variables/functions
- Renamed a variable shadowing a script variable
- Add a makefile and luacheckrc for running luacheck
2020-12-31 11:32:29 +00:00