Commit Graph

34 Commits

Author SHA1 Message Date
~hedy
b5457a9b38 chore(docs): Typo fix and update changelog 2025-04-19 21:08:45 +08:00
~hedy
20aa0659e1 docs: Update language 2025-01-05 09:11:08 +08:00
~hedy
68f3349982 docs: Update changelog
For #104, #107
2024-12-27 09:23:58 +08:00
~hedy
94e2385fd5 docs: Update changelog
For #106, #105, #103, #100
2024-12-27 09:13:39 +08:00
~hedy
41e7b88a2b fix: Error on goto_location when code window closed
Mentioned by @gennaro-tedesco in #91
2024-09-09 15:29:59 +08:00
~hedy
33fcb583aa docs: Update changelog 2024-09-08 09:13:27 +08:00
~hedy
6f0747dfcb docs: Update changelog 2024-08-22 18:27:10 +08:00
~hedy
9afa112fce docs: Update changelog 2024-08-22 18:16:45 +08:00
~hedy
bc58f196ec feat: Pass in the buffer number for symbols.icon_fetcher 2024-07-05 12:51:48 +08:00
~hedy
832914657b docs: Fix typo in changelog 2024-06-05 20:59:43 +08:00
~hedy
e0b86347ad feat: Focus outline if already open
closes #71
2024-05-30 07:52:51 +08:00
~hedy
90fb2f96ee chore: Bump version 2024-05-02 21:17:35 +08:00
~hedy
a50c403084 docs: Update changelog 2024-05-02 21:15:59 +08:00
hedy
b64c0c66d4 feat(providers): Support independent configs for each provider to handle
Closes #58
2024-03-16 08:12:50 +08:00
hedy
6127365ba0 docs: Update readme & changelog 2023-12-27 22:21:30 +08:00
hedy
4bbecbb92e feat: Auto-resize and re-position preview
Only for auto-preview.
2023-11-30 10:02:01 +08:00
hedy
920e12736c feat: Autofold non-hovered symbol by default 2023-11-29 18:18:18 +08:00
hedy
c148a9977e docs: Update changelog 2023-11-29 17:33:55 +08:00
hedy
884486f3d0 feat: Live previews (peek editor)
Disabled by default, but if this feature turns out to be useful and
stable, it will replace the old preview window.
2023-11-28 20:50:08 +08:00
hedy
6d85399550 feat: Use more concise API names
No breaking change.
2023-11-25 15:43:36 +08:00
hedy
1c856660a4 docs: Update readme and changelog 2023-11-24 17:13:25 +08:00
hedy
ebf90dc9ee fix(markdown): Don't include next heading in previous heading's range
Somehow marksman also does this?

As for treesitter (norg) it may be because treesitter includes the
newline and the next line indent until the next heading, so the line of
the next heading is included in the range of the previous heading. We
manually -1 on the range end line to fix it.
2023-11-24 15:04:18 +08:00
hedy
e705330e40 feat: Per-tabpage outlines
Closes #37

Almost completely refactored the UI parts outline.nvim to use a Sidebar
object that implements an outline window. In init.lua, we can then store
a table of the outline for each tabpage ID.

When tabs are closed the outline is closed and sidebar reset
responsibly.

This simplifies `init.lua` quite a lot, making it the highest level
control center for the outline elements.

All lua APIs and commands should work as before.
2023-11-24 14:50:24 +08:00
hedy
7187665106 docs: Update changelog 2023-11-23 18:49:12 +08:00
hedy
d35187ef37 feat: Norg provider and support of external providers
- Closes #3
- Ref: simrat39/symbols-outline.nvim#190

Norg contains indents and different types of verbatim tags, I was rather
lazy to read the spec properly and parse norg using regex line-by-line
like markdown, so used treesitter instead. The only requirement is the
`norg` parser for treesitter to be installed. Tested on nvim 0.7.2.

This should lead the way for supporting vimdoc files in a similar
manner.

Documentation for how external providers could look like as of now has
been added.

In the future we could let the provider determine what to do for each
keymap, such as `goto_location` and `toggle_preview`. This would allow
the zk extension[1] to work properly without having to override existing
functions (bad practice).

[1]: https://github.com/mickael-menu/zk-nvim/discussions/134
2023-11-22 22:16:19 +08:00
hedy
699bc85cc5 feat: Properly support nvim-0.7, and fix highlights 2023-11-21 08:39:05 +08:00
hedy
ad6b15ee08 refactor: Rename of most recent option 2023-11-19 22:35:07 +08:00
hedy
4bc6bfc0dd docs: Update changelog 2023-11-19 21:08:54 +08:00
hedy
f8c212bcd2 docs: Document new options, commands, API functions 2023-11-18 22:24:34 +08:00
hedy
fa1a999f80 docs: Update changelog 2023-11-18 21:13:11 +08:00
hedy
6af621f168 docs: Update changelog 2023-11-18 15:10:14 +08:00
hedy
090da7633b fix: Preview window position based on outline split position
- preview window can adapt based on position of outline window, and not
  based on config value of `position` left/right
- it can also properly vertically center-align, even when there are
  horizontal splits below the outline
- fixed a few bugs associated with previous rewrite commits in init.lua

config:
- Added min_height for preview window
2023-11-18 15:04:26 +08:00
hedy
5726e23853 docs: Update changelog 2023-11-18 12:38:14 +08:00
hedy
33df585c90 docs: Add changelog 2023-11-18 12:16:09 +08:00