Commit Graph

18 Commits

Author SHA1 Message Date
27Onion Nebell
5779c6f6a7 fix: migrating to 0.11
fix: migrating to 0.11

fix: migrating to 0.11

fix: migrating to 0.11
2025-04-12 00:34:23 +08:00
~hedy
193e03a7b7 Support neovim < 0.10 for lsp.get_clients 2024-06-05 20:54:26 +08:00
LVIM ORG
e6afff238c Fix deprecated get_active_clients 2024-05-19 12:52:54 +03:00
hedy
8c6b11e4c2 chore: stylua 2023-12-29 21:50:48 +08:00
hedy
8b2f412b7b fix(providers): Ensure working on nvim-0.7
This commit removed the ability to receive symbols from all attached
clients in the current buffer. Everything works as before when only one
client is attached to a buffer.

This also fixes outline LSP finding clients on nvim-0.7
2023-12-29 19:17:00 +08:00
hedy
982460584f fix(lsp): Use vim.buf.lsp.rename for rename_symbol
Closes #42
2023-12-27 22:14:12 +08:00
hedy
d073791f1c fix: No-op keymaps when there is no provider 2023-12-13 18:40:08 +08:00
hedy
dc942d03c3 chore(fmt): stylua 2023-11-27 20:16:26 +08:00
hedy
80165f0472 feat(providers): Modular hover-symbol support 2023-11-27 20:11:16 +08:00
hedy
8c13999acc feat: Update outline on rename symbol
Also added ability to show provider status from code_action and
rename_symbol
2023-11-26 20:44:42 +08:00
hedy
5b70292780 Refactor symbol types 2023-11-26 16:49:25 +08:00
hedy
b90174c6c2 refactor: Provider symbol actions
It makes sense to store the provider each sidebar is using with own
self.provider fields, no way that did not occur to me before this.

The old `_G._outline_current_provider` ironically, can now be replaced
by `require('outline').current.provider`.
2023-11-26 15:14:42 +08:00
hedy
9f69f12161 refactor: Reorganize modules
Primarily:
- Utils
- Sidebar (removed the need of writer.lua)
- Resolve keymaps shortcut in config eraly
- Put highlight functions into highlight.lua
- Put functions that do stuff on outline window into view.lua
2023-11-26 13:17:18 +08:00
hedy
ec4f727631 refactor: Reorganize provider API 2023-11-22 20:55:10 +08:00
hedy
3762402dd3 refactor(providers): Let get_status() return a list of strings instead 2023-11-19 19:02:00 +08:00
hedy
dc55a8b942 chore(fmt): Finally let's use stylua
Hoping it's as good as go-fmt
2023-11-17 09:28:33 +08:00
hedy
5278eb5b2b feat: Better provider info and fix LSP deprecated warnings
- Provider priorities can now be configured through `providers.priority`

- Each provider can have a get_status() function that returns a string
  for its status. For LSP it returns the client name.

- :OutlineStatus logic refactored, together with provider checking
  functions in `providers/init.lua`

- Switch from vim.lsp.buf_get_clients to vim.lsp.get_active_clients
  (former was deprecated)

- Fixed a careless mistake from symbols-outline that seems to be an
  unreachable bug (lsp)
2023-11-16 15:41:37 +08:00
hedy
965a3842c8 MAJOR: Project rename and preparation for v1.0.0
I hope I haven't missed any for the renames!
2023-11-12 12:40:32 +08:00