Commit Graph

154 Commits

Author SHA1 Message Date
simrat39
fae3393873 refactor: Move buffer/window creation to its own module
For now we have some stuff out of that module to prevent infinite
require loops (set_keymaps/clear_state), but once state goes into its
own module as well then we can work it all into view.lua
2021-08-22 17:22:16 -07:00
simrat39
c646d68fe8 refactor: Move nmap to utils 2021-08-22 17:00:24 -07:00
simrat39
e7b5fb7d2c cleanup: Remove debugging commands
Not really used anymore
2021-08-22 16:42:35 -07:00
simrat39
2932c11e92 refactor: Move debounce function to the utils 2021-08-22 16:38:26 -07:00
Omar Zeghouani
78b4f20b39 Simplify preview toggle 2021-08-21 10:17:12 +01:00
Omar Zeghouani
9a74879d31 Remove print statement 2021-08-21 09:46:03 +01:00
simrat39
40b7d5cbaa fix: ui: Follow links while setting up SymbolsOutlineConnector
we link to comment but dont follow links which makes it wonky with
themes. Also make the highlight customizable.
2021-08-20 19:34:01 -07:00
simrat39
af491baebd preview: toggle: Dont use global variable 2021-08-20 19:11:48 -07:00
simrat39
079f39607a Update preview_toggle name 2021-08-20 19:11:24 -07:00
simrat39
a2e4a20308 Merge branch 'master' of https://github.com/ram02z/symbols-outline.nvim into ram02z-master 2021-08-20 19:06:46 -07:00
Omar Zeghouani
970d9932c5 Add help message for keybinds 2021-08-20 20:38:04 +01:00
Omar Zeghouani
23f1299869 Add toggle functionality
- Ensure that preview window always closes on symbol window exit
2021-08-20 20:25:22 +01:00
scheatkode
b1d0fadac5 feat(config): Add preview keymap trigger 2021-08-05 13:52:25 +01:00
simrat39
1941d9edf9 Initial markdown support
Markdown doesnt have a language server, so do this manually
Closes #43
2021-08-01 12:22:01 -07:00
Gabriele Musco
f04ed3732f Use Comment color instead of SignColumn 2021-08-01 12:22:01 -07:00
simrat39
63931775ce feat(config): Allow multiple keys for keymaps
Closes #45
2021-07-29 12:09:41 -07:00
simrat39
260227983a feat: Add width option
* This is relative to the size of the current split
2021-07-27 15:27:54 -07:00
simrat39
1784dcc520 fix(ui): Use a seperate highlight for connectors
* Some colorschemes do some funky things with the comment highlight, most
  notably making them italic, which messes up the outline connector. Fix
  this by copying the foreground color from the comment hl into a new
  highlight.

* Closes #42
2021-07-27 15:16:03 -07:00
simrat39
6a51c637dd feat: Add option to blacklist symbols
Closes #38
2021-07-21 12:59:44 -07:00
simrat39
3e9e019b03 feat(ui/config): Add config option to change icons and highlights
Closes #37
Kinda related to #19
2021-07-17 20:28:50 -07:00
simrat39
74fd5bf67d fix(symbols): Handle unkown symbols
Default to the Object icon
Closes #28
2021-07-13 20:41:42 -07:00
simrat39
72c3d49cc6 preview: Disable cursorline on hover info 2021-07-13 15:43:37 -07:00
simrat39
43377f14ca preview: Use proper markdown stylizing 2021-07-13 15:40:19 -07:00
simrat39
8d96b7a136 fix(hover): Update manual hover to use the new floating api
Closes #36
2021-07-13 15:20:22 -07:00
simrat39
631a8880de feat: Add option to disable details virtual text
Closes #32
2021-06-22 20:07:52 -07:00
simrat39
a100b51b23 feat: Allow setting line numbers / relative numbers
Closes #31
2021-06-22 19:59:49 -07:00
simrat39
c6318d9279 feat(preview): Use treesitter for highlighting if possible
Closes #27
2021-06-14 15:55:35 -07:00
osmund
e7a2cfbee8 feat: support multiple lsp clients
Fixes issue #25
2021-06-13 11:23:46 +02:00
simrat39
b3ea81ef9a feat(config): Enable auto_preview by default 2021-05-29 19:16:27 -07:00
simrat39
c9c68de360 feat(parser): Support SymbolInformation[]
-- https://microsoft.github.io/language-server-protocol/specification#textDocument_documentSymbol
Some lsp like vuels, pyls etc dont support the newer DocumentSymbol[]
data structure so add minimal support for the old way. This is not
hierarchical so not really a tree

Addresses #13
2021-05-03 16:02:56 -07:00
simrat39
887db9aaaa refractor(parser): get_details: Use flattened_outline_items 2021-05-03 15:25:06 -07:00
simrat39
e9adda47f3 feat(auto_preview): Experimental auto preview and auto hover support
#10
2021-05-02 17:49:18 -07:00
simrat39
a3634eadbd fix(writer): Make sure we're writing only to the outline 2021-05-01 20:12:58 -07:00
simrat39
8d4f4c7356 fix(position): Update right split command 2021-04-30 19:42:43 -07:00
simrat39
b8ec42f32a feat(config): LSP Blacklist
Addresses #9
2021-04-28 22:39:19 -07:00
simrat39
067fd91f16 feat(config): Allow configuring keymaps
Closes #1
2021-04-28 15:03:40 -07:00
simrat39
e03a9aee80 ui: Check if FocusedSymbol highlight exists before creating it
This way, users / themes can set their own
Closes #2
2021-04-24 19:17:55 -07:00
simrat39
ae5f990f01 feat(config): Add option to change split position
Default: 'right'
Possible Values: 'right' and 'left'
2021-04-24 19:02:01 -07:00
simrat39
21f085cb92 fix(auto highlight): Only update highlight/position if current buffer is attached to a client 2021-04-24 15:05:59 -07:00
simrat39
aaae362ae8 feat: Add code actions support
Uses the default handler, mapped to 'a'
2021-04-24 14:51:28 -07:00
simrat39
7c0fbcf69c Merge branch 'Open-and-Close-Commands' of https://github.com/Oliver-Leete/symbols-outline.nvim into Oliver-Leete-Open-and-Close-Commands 2021-04-24 14:20:04 -07:00
Oliver Leete
0559843c7b Added seperate commands for openening and closing the outline window 2021-04-24 14:42:22 +01:00
simrat39
952c39a43d fix(debug): Fix command 2021-04-23 22:41:36 -07:00
simrat39
16f380fca3 fix(symbols): Make sure module stays local 2021-04-23 17:24:28 -07:00
simrat39
062dac0ac1 ui: Improve FocusedSymbol highlight 2021-04-23 15:14:34 -07:00
simrat39
4451c904d0 fix(hover/rename): Remove manual unloading of packages
lua 🙏🙏🙏🙏
2021-04-22 20:06:48 -07:00
simrat39
88d7ce38ba feat(guides): Add option to disable guides 2021-04-22 20:02:28 -07:00
simrat39
8d8f44e04b refractor(opts): Move options into its own module 2021-04-22 20:01:49 -07:00
simrat39
d4042c99d4 refractor(debug): Move debug stuff to its own module 2021-04-22 18:37:50 -07:00
simrat39
b32435a2f5 fix(rename): Unload state after rename
lua keeps stuff 'cached' so the state does not get updated, therefore we
need to manually unload it
2021-04-22 17:59:29 -07:00