Jonas Dujava
e6cc783b74
fix(query): use explicitly the legacy behavior
...
After
6913c5e1d9
it is necessary to opt-in explicitly to the old behavior.
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
2024-09-02 10:18:59 +01:00
Lewis Russell
7f69542054
fix: clear all namespaces
2024-07-05 14:55:37 +01:00
novenary
3bb6966e91
fix: check if buffer is loaded
...
Fixes #455 .
2024-07-05 14:49:24 +01:00
Lewis Russell
d1767935a6
fix: do not create contexts with invalid ranges
...
Fixes #442
2024-07-05 14:41:57 +01:00
Lewis Russell
813170c8ef
feat: copy over extmarks
2024-07-05 14:15:53 +01:00
Lewis Russell
8198ad4b01
fix: avoid using -1 as a column
...
Fixes #456
2024-07-05 14:08:54 +01:00
Lewis Russell
0734ffb03d
fix: handle contexts with zero width
2024-07-05 14:08:54 +01:00
Lewis Russell
865424e468
fix: vendor tbl_flatten
2024-05-17 09:43:44 +01:00
Brayan-724
1e52a2c422
fix: height error while scrolling down
2024-05-11 21:05:00 +01:00
Sam-programs
ba4289ad34
fix(nighly): use get_hl_from_capture for nightly, instead of hl_cache
2024-04-19 11:01:57 +01:00
Lewis Russell
2484f58384
refactor(context): use an iterator function
2024-03-18 17:15:16 +00:00
Rom Grk
b8b7e52c15
perf: revert "fix: do not use vim.treesitter.highlighter" ( #414 )
...
This reverts commit 4f5c742697
.
2024-03-05 16:43:55 -05:00
Karol Waszczuk
fbeff2a60d
fix: Display context when injected language is not supported
2024-02-20 01:10:24 +00:00
Karol Waszczuk
23b699ac40
fix: crashes on lines with invalid syntax
...
Fixes #397
2024-02-17 01:10:31 +00:00
Luuk van Baal
b90ac39bf3
fix: set "fillchar" for 'statuscolumn' rendering
2024-02-16 23:56:58 +00:00
Karol Waszczuk
0a95d477c8
feat: Support context recognition for injected languages
2024-02-16 14:26:36 +00: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
Lewis Russell
4f5c742697
fix: do not use vim.treesitter.highlighter
...
Fixes #387
2024-02-14 15:48:50 +00:00
Danielkonge
9c06b115ab
feat(hl): add 'TreesitterContextLineNumberBottom'
2024-01-25 21:10:55 +00:00
Shihua Zeng
652ec514d6
feat: allow passing param depth to go_to_context() ( #277 )
...
* feat: allow passing param depth to go_to_context()
* doc: update README
* fix: remove usage of `vim.iter()` in `go_to_context()`
2023-12-23 10:16:06 +00:00
Aaron Dill
cfa8ee19ac
feat: Add .is_enabled to check current status ( #346 )
...
* feat: Add .enabled() to check current status
This allows configurations to do things such as my use case of
notifying the new state when using .toggle()
Co-authored-by: Lewis Russell <me@lewisr.dev>
2023-12-08 15:37:46 +00:00
Lewis Russell
6795de086e
fix: better typing of setup()
2023-09-25 11:05:52 +01:00
RoRep1ay
b6c763db8c
fix: TS Context Render on CMD Line Window
2023-09-06 07:31:56 +01:00
Lewis Russell
3e7c60982c
fix: make sure setup can be called multiple times
...
Fixes #324
2023-08-28 18:55:42 +01:00
Farzad Majidfayyaz
9afe41b083
fix: add missing comma
2023-08-28 18:35:31 +01:00
Lewis Russell
07b2a7d0c7
refactor: remove CursorMoved vertical logic
...
Contexts can change when move the cursor horizontally.
2023-08-28 16:39:05 +01:00
Lewis Russell
f658e24365
refactor: break into multiple files
2023-08-28 16:36:18 +01:00
Lewis Russell
e6b743ccd4
refactor: autocmds and setup
2023-08-28 16:36:18 +01:00
Lewis Russell
00fb2f7078
refactor: extmarks
2023-08-28 16:36:18 +01:00
Lewis Russell
a77f1aa126
fix: error with line numbers disabled
...
Fixes #322
2023-08-28 09:04:03 +01:00
Lewis Russell
64828e2665
fix(goto): add to jumplist
...
Fixes : #307
2023-08-27 15:07:50 +01:00
Lewis Russell
35ff768f3c
fix: detect changed to line number options
...
Fixes : #294
2023-08-27 14:14:13 +01:00
Lewis Russell
1ba937b38e
fix(on_attach): #310
...
Fixes : #310
Resolves : #313
2023-08-27 14:05:30 +01:00
Lewis Russell
19a265d7f7
feat: highlight injection langs
...
feat: better multiline contexts
Instead of collapsing all the lines in a node, instead display the node
on multiple lines if it requires it.
This should significantly simplify the highlighting logic since we don't
need to keep track of how lines are joined.
2023-08-27 13:20:44 +01:00
Lewis Russell
e5676455c7
refactor: rename variable to snake case
2023-08-27 13:11:09 +01:00
Lewis Russell
c17ffc2e71
fix(highlight): always copy tabstop
2023-08-27 13:10:09 +01:00
Lewis Russell
e5075b2599
fix: typo
2023-08-27 13:05:08 +01:00
Lewis Russell
c160a507ae
refactor: bottom highlighting
2023-08-27 13:04:07 +01:00
Lewis Russell
4d7c6b9532
refactor: move calc_max_lines
2023-08-27 12:58:58 +01:00
Lewis Russell
9df30e2ea1
refactor: always pass bufnr/winid
2023-08-27 12:50:21 +01:00
Lewis Russell
1786b5019e
refactor: line number rendering
2023-08-26 12:06:11 +01:00
Lewis Russell
beae28308c
refactor: calculate ranges when checking parent nodes
2023-08-26 11:31:34 +01:00
Lewis Russell
e6e3d2e705
feat: highlight injection langs
2023-08-26 10:59:42 +01:00
Lewis Russell
ce583c89c8
fix: typing
2023-08-23 14:55:32 +01:00
Lewis Russell
80a03b2d70
fix: adjust max_start_depth to account for upstream changes
2023-08-23 14:44:38 +01:00
Avi Dessauer
d8fd71428e
Address review
2023-08-14 19:18:46 +01:00
Avi Dessauer
23619e14ad
Fix #306
2023-08-14 19:08:17 +01:00
Avi Dessauer
dc45b3e04e
Fix up
2023-08-14 16:51:59 +01:00
Avi Dessauer
c92b537ecd
Fix scrolling error
2023-08-14 16:51:59 +01:00
Lewis Russell
c315c973be
chore: formatting
2023-07-13 09:53:14 +01:00