jinzhongjia / LspUI.nvim

A modern and useful UI plugin that wraps lsp operations.
MIT License
172 stars 3 forks source link

Reflactor #12

Closed jinzhongjia closed 10 months ago

jinzhongjia commented 1 year ago

I created this plugin just because I needed a stable lsp plugin (didn't follow many specifications), now I want to refactor the logic of the entire code and add new features

Some real-world testing is required before merging

Here are the features I think need to be added:

If you can see this issue, you can discuss what features need to be added!!

Features that have been refactored:

note:

The following are all completed

code action should provide registration method, for lua's code action diagnostic should provide a diagnostic overview of the current workspace and files

Problems:

the keymap only will remove, we should restore keymap

jinzhongjia commented 1 year ago

Development specification:

  1. Each module contains its own init function
  2. Create command when module init
  3. Each module is decoupled, can be referenced and used separately
  4. Each module has func run
  5. As neovim is the host system, its plugins should be kept as minimally intrusive as possible
jinzhongjia commented 1 year ago

In feature, maybe some nvim-builtin func need to be rewrite ? such as get next diagnostic, it do repeated operations

jinzhongjia commented 1 year ago

now, I didn't know how to display callHierarchy