Commit graph

419 commits

Author SHA1 Message Date
Sean Dewar
00d994705a Fix autocmd event guard in nvim_augroup()
Using '#Name' with exists() returns 1 if an autocmd has been defined
already for that event somewhere. What we want to do instead is check
that the event itself exists, which is done using '##Name'.
2020-10-21 20:40:17 +01:00
Sean Dewar
6e5d1ec12e Close context window on WinLeave
Avoids what seems to be an issue with nvim_win_set_config() and
WinEnter/WinLeave, which causes the context window to open at the
top-left corner of the screen when creating splits, rather than relative
to the current window with "relative = 'win'".
2020-10-21 20:39:44 +01:00
Rom Grk
69d80f8286 fix scroll gurad 2020-10-21 13:02:02 -04:00
Rom Grk
461fc2615d improve handling of window events 2020-10-20 19:52:39 -04:00
Rom Grk
d9648de685
Merge pull request #6 from romgrk/highlight
Implement highlights
2020-10-20 19:13:47 -04:00
Rom Grk
81474aff59 implement highlights for partial nodes 2020-10-20 19:10:00 -04:00
Rom Grk
ee02ba1da7 update demo 2020-10-20 18:59:00 -04:00
Rom Grk
f702b95fde
Merge pull request #5 from romgrk/add-scroll-event
Add Scroll autocmd
2020-10-20 18:52:12 -04:00
Rom Grk
a977dd8962 add Scroll autocmd 2020-10-20 12:38:09 -04:00
Rom Grk
ecfd9fcaed
Merge pull request #4 from seandewar/context-win-fixes
Fix E11 and improve get_gutter_width() accuracy
2020-10-20 12:36:29 -04:00
Sean Dewar
e599c7e251 Improve get_gutter_width() accuracy using wincol()
This also seems to eliminate the need to check for a positive width when
opening a new context window.
2020-10-20 16:53:15 +01:00
Sean Dewar
fa633a2084 Don't quit context win if command-line win is open
Opening the command-line window while the context window is open causes
errors.

You can only close the command-line window when it is open; attempting
to close other windows will throw E11.

See https://github.com/neovim/neovim/pull/10738
2020-10-20 00:31:54 +01:00
Rom Grk
6932dd9e0a
Merge pull request #2 from seandewar/bad-context-win-width
Don't create a context window with width <= 0.
2020-10-19 18:17:42 -04:00
Sean Dewar
4dc48a8db0 Don't create a context window with width <= 0
May have caused errors when trying to create the context window for very
small windows.
2020-10-19 22:16:02 +01:00
Rom Grk
1a2f54d78b lint: remove global function 2020-10-19 12:23:04 -04:00
Rom Grk
3ca73d8dbe fix commands 2020-10-19 05:53:10 -04:00
Rom Grk
41d509e597 update demo 2020-10-19 05:49:21 -04:00
Rom Grk
dfcc7f503b update readme 2020-10-19 05:45:48 -04:00
Rom Grk
f96de9c933 initial commit 2020-10-19 05:42:47 -04:00