Commit Graph

71 Commits

Author SHA1 Message Date
simrat39
6f376ef4ce refactor: Move should refresh logic to utils 2021-08-22 17:29:29 -07:00
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
ebf490a0e8 cleanup: Remove _prevent_buffer_override() function on BufLeave 2021-08-22 16:56:33 -07:00
simrat39
a4b701978f refactor: Move commands and autocommands to vimscript 2021-08-22 16:55:29 -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
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
sim
2047f401e7 Merge pull request #50 from scheatkode/fix/refresh
fix: Handle window switching
2021-08-18 17:51:44 -07:00
scheatkode
bb8df852d2 fix: Handle window switching
The outline window is sometimes not refreshed when switching windows.
This is fixed by listening for `BufEnter` events.

A debouncing function is also added to prevent spamming the language
server.
2021-08-05 16:03:12 +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
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
0868b5f463 fix: Fix the width of the outline window
So that it does not get offset by opening a file manager or other splits
Closes #33
2021-07-21 12:34:55 -07:00
simrat39
fea9ce74e2 Remove debug print 2021-07-13 21:46:44 -07:00
simrat39
8aa8cbad58 feat: Focus to the currently hovered symbol on the first open
We already do this whenever the user is going through the code file but
it doesnt happen on the first open of the outline, so do that.

Closes #24
2021-07-13 21:10:26 -07:00
simrat39
a100b51b23 feat: Allow setting line numbers / relative numbers
Closes #31
2021-06-22 19:59:49 -07:00
sim
e4172c803c Merge pull request #29 from ovikk13/feat-multiple-lsp-clients
feat: support multiple lsp clients
2021-06-13 11:10:06 -07:00
osmund
2caf9f6ff7 Fix(#22): unable to close last buffer if outline opened. 2021-06-13 11:59:17 +02:00
osmund
e7a2cfbee8 feat: support multiple lsp clients
Fixes issue #25
2021-06-13 11:23:46 +02:00
simrat39
23f253aa38 Make keybindings non recursive
Closes #18
2021-05-29 19:13:37 -07:00
Emiliano Ruiz Carletti
bb73de0e6a Silent mappings 2021-05-26 19:46:47 -03:00
simrat39
6cffe24f33 fix(_refresh): Only refresh if current buffer is attached to a lsp
client
2021-05-03 15:30:46 -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
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
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
51e1170eec fix(_prevent_buffer_override): Only cycle windows if we have less than two
* kinda weird fix for closing the qf list making everything go wack
2021-04-24 14:29:50 -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
disrupted
9c3299bef8 Set filetype 2021-04-24 14:09: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
8edb1e005b feat: Add keymap to go to location without losing focus 2021-04-23 15:14:34 -07:00
simrat39
b3344e9f97 fix(prevent_buffer_override): Go to next buffer after switching windows
Else it goes straight to the first window
2021-04-22 20:27:17 -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
1c07dfb4bb fix(handler): Make sure results are valid tables 2021-04-22 18:35:01 -07:00
simrat39
4395434980 feat: Add rename symbol support 2021-04-22 15:02:48 -07:00
simrat39
2448b647d4 symbols-outline: Remove useless comment 2021-04-22 14:37:47 -07:00
simrat39
be8cf968cf refractor: Restructure project
lil better to work on now
2021-04-22 14:24:21 -07:00
simrat39
b8e0c77dd2 fix: Fix details
???
2021-04-21 22:56:45 -07:00
simrat39
0073d1c303 feat: Add support for hovering on symbols inside the outline
Funky stuff, rename soon
2021-04-21 22:55:22 -07:00
simrat39
7f37dfa7fd fix: Handle toggling logic outside the handler
* This way we can close the window while being focused in it. Before,
  the window was not closed because the handler wasn't called because no
  lsp was attached
2021-04-21 22:26:01 -07:00
simrat39
3381bfeea6 outline: Prevent buffer taking the whole space when closing another buffer
Major thanks to https://github.com/kyazdani42/nvim-tree.lua
2021-04-21 22:20:06 -07:00