Commit Graph

376 Commits

Author SHA1 Message Date
hedy
6c47ebf0d7 fix: Extra left padding
Please see linked issues

- simrat39/symbols-outline.nvim/165
- simrat39/symbols-outline.nvim/178
- simrat39/symbols-outline.nvim/209
2023-11-08 08:36:17 +08:00
hedy
0e785762f7 feat: Line numbers next to symbols for quick jumping
See reasoning in:
simrat39/symbols-outline.nvim#212

This feature is turned off by default to avoid clutter, and many users
might not want this feature on by default.
2023-11-08 08:02:42 +08:00
hedy
cb1c108a0c fix(markdown): Ensure content is followed by '#'
Before this commit, empty headings are taken into account:

   # a normal heading

   below is not a good heading:

   #

   below is also not a good heading:

   ##

   These should not be listed in the outline.
2023-11-07 21:14:39 +08:00
hedy
9e96b54de9 feat: Add follow_cursor and restore_location
New lua API function: follow_cursor (supports opts.focus_outline).
This sets location in outline to match location in code.

New keymap: restore_location (C-g) by default.
This provides the same functionality as follow_cursor.

I've also refactored other lua API functions for consistency of using
`opts.focus_outline`. If opts is not provided, focus_outline is
defaulted to true. To change this behaviour, set it to false.
2023-11-06 09:20:52 +08:00
hedy
8ddaa13443 Merge upstream PR #229
simrat39/symbols-outline.nvim#229
2023-11-03 09:43:02 +08:00
hedy
7ad4009d17 Update readme and reorganize 2023-11-03 09:28:44 +08:00
hedy
e3d622445e feat: Move and goto_location simultaneously, and highlight
See readme changes
2023-11-02 21:37:40 +08:00
hedy
fe98a8cf8a BREAKING: Rename focus_location -> peek_location
Avoids confusion with other uses of 'focus'.
2023-11-02 21:13:30 +08:00
hedy
a23a0d321f Merge upstream PR #235
simrat39/symbols-outline.nvim#235
2023-11-02 20:18:02 +08:00
hedy
b495ccc3ef Fix invalid buffer id 2023-11-02 20:17:51 +08:00
hedy
23b31c64e8 Merge upstream PR #177
simrat39/symbols-outline.nvim#177
2023-11-02 20:14:32 +08:00
hedy
bbe95d0c58 fix(auto_preview): Instantly preview whenever another node is selected
simrat39/symbols-outline.nvim#119

Rather than using another config option, this should be the default,
expected behaviour for auto_preview.

Also (another difference to the PR implementation is that) there is no
need to subscribe to both CursorHold and CursorMoved.
2023-11-02 20:06:06 +08:00
hedy
a87f73c3b2 BREAKING,feat: Customizable guide markers
See readme
2023-11-02 17:46:27 +08:00
hedy
841825b747 Document border option and publicize has_code_win 2023-11-02 17:31:37 +08:00
hedy
c19b3bd571 feat: Add show_status 2023-11-01 21:09:06 +08:00
hedy
d78d94218a feat: Revamp preview window
Please see README diff for details and implications.
2023-11-01 21:04:26 +08:00
hedy
505e99e870 chore(docs): Update readme 2023-11-01 18:54:40 +08:00
hedy
0ad33c4842 feat(commands): Support bang on commands to force retain focus
See readme
2023-11-01 18:38:18 +08:00
hedy
2df9662290 feat: Focus and unfocus outline window 2023-11-01 16:52:56 +08:00
hedy
0769cfe5c3 feat(cursorline): Add cursorline option 2023-11-01 16:20:51 +08:00
hedy
782e7cb18b Don't use h3 header for 'No info' message
Not sure what the point here is since there isn't anything beneath the
header anyway.
2023-11-01 15:37:17 +08:00
hedy
f7fc1905a4 fix(preview): Empty symbol preview
Fix simrat39/symbols-outline.nvim#176

I was going to pull @enddeadroyal's commit from their
'bugfix/symbol-hover-misplacement' branch in their fork but they changed
indentation so I had to apply the relevant changes myself instead.

However, credits for this fix goes to @enddeadroyal from the issue
commit in 176.

Also fixed the "No info available" markdown as it wasn't rendering
properly for me without a space after the '###'.
2023-11-01 15:33:26 +08:00
hedy
e98041c75f Use lua to create commands 2023-11-01 14:29:56 +08:00
hedy
4f3993627b Merge upstream PR #119
simrat39/symbols-outline.nvim#119
2023-11-01 13:40:24 +08:00
hedy
57c758322b Merge upstream PR #180
simrat39/symbols-outline.nvim#180
2023-11-01 13:20:47 +08:00
hedy
8969e4694c Merge upstream PR #222
simrat39/symbols-outline.nvim#222
2023-11-01 13:19:23 +08:00
hedy
a240ba4483 Merge remote-tracking branch 'rqdmap/master'
simrat39/symbols-outline.nvim#218
simrat39/symbols-outline.nvim#217
2023-11-01 12:57:12 +08:00
hedy
5df2881500 fix(folding): Don't attempt to toggle non-foldable node 2023-10-31 21:06:50 +08:00
hedy
fe34bf0613 feat(folding): Support toggling of folds 2023-10-31 20:29:06 +08:00
hedy
b4798a669b Merge branch 'master' of github.com:beauwilliams/symbols-outline.nvim
simrat39/symbols-outline.nvim#163
2023-10-31 20:22:11 +08:00
hedy
b55cb085f7 Merge branch 'master' of github.com:anstadnik/symbols-outline.nvim
simrat39/symbols-outline.nvim#225
2023-10-31 20:20:30 +08:00
hedy
c1749b6258 Merge branch 'fix-newline-in-symbols' of github.com:tbung/symbols-outline.nvim
simrat39/symbols-outline.nvim#204
2023-10-31 20:19:14 +08:00
hedy
b78a6b0592 Merge branch 'code_action' of github.com:zjp-CN/symbols-outline.nvim
simrat39/symbols-outline.nvim#168
2023-10-31 20:17:37 +08:00
eyalz800
5dee509556 Open handler checks if view is not already open 2023-09-01 13:30:57 +03:00
Joe Meissler
4574841b7e auto_jump config param 2023-06-07 23:22:57 -07:00
Yajie Zhu
d5f7d5f449 Merge branch 'simrat39:master' into master 2023-06-01 20:45:40 +08:00
Andrii Stadnik
df6387d330 Update nerd fonts to 3.0
After https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0
certain icons were deprecated.
2023-05-24 09:19:33 +03:00
Kevin Jeong
0cb15e31ab fix(folding): optimize fold/unfold all 2023-05-22 03:14:43 -07:00
Masahiro Kasashima
33f1cf14b1 Allow any number of =s and -s 2023-05-19 22:27:19 +09:00
Masahiro Kasashima
5f3273c073 Support markdown multi line header notation 2023-05-19 22:15:56 +09:00
rqdmap
b740f88a72 Support ccls symbols 2023-05-04 21:34:03 +08:00
Till Bungert
93f066a029 fix: replace newlines with spaces in writer
`nvim_buf_set_lines` does not allow newline characters in the individual
lines.
2023-02-14 22:07:33 +01:00
geekifan
b175dccd59 fix(coc.lua): no hierarchy when using coc.nvim 2023-01-25 14:34:26 -08:00
Eric Haynes
e34ee8278e Convert from obsolete higlight group names 2023-01-25 14:33:27 -08:00
Clément Joly
5653d95977 set spell to false
Having spell check in the outline is pointless, it just adds visual
noise by underlining the icons.
2022-10-06 22:37:54 +01:00
Clément Joly
5de4a9203e default signcolumn to 'no'
This leaves more space in the side window for the outline.
2022-10-06 22:36:49 +01:00
Yajie Zhu
9f9a9590ca fix: Invaild buffer id error 2022-09-30 21:19:14 +08:00
charburgx
e4b97468ab feat: Merge JSX symbols into lsp tree 2022-09-14 21:26:27 -05:00
zjp
e639dea62f fix(code_actions): use the builtin code_action
instead of `buf_request` to prevent from passing custom lsp.handlers
and this makes use of telescope if it's set by the user
2022-09-14 17:13:04 +08:00
Beau
14b5380ea8 fix: plugin crashes when SymbolOutlineClose used
if SymbolOutline is not already open
2022-08-31 15:25:02 +10:00