add lspsaga plugin and doc for it
This commit is contained in:
parent
ebfae87445
commit
9cc6739703
2 changed files with 44 additions and 0 deletions
36
README.md
36
README.md
|
@ -321,6 +321,42 @@ GitSings provides some commands for displaying git stuff:
|
|||
|\<leader\>wr |remove workspace folder|
|
||||
|\<leader\>wl | list workspace folders |
|
||||
|
||||
#### Lspsaga plugin
|
||||
|
||||
Display element (function or whatever?) hierarchy
|
||||
```bash
|
||||
:Lspsaga incoming_calls and :Lspsaga outgoing_calls
|
||||
```
|
||||
Show avaliable code actions for current line
|
||||
```bash
|
||||
:Lspsaga code_action
|
||||
```
|
||||
Element definition
|
||||
```text
|
||||
Invoke by running :Lspsaga peek_definition and :Lspsaga peek_type_definition. Layout is drawer and is currently the only one available. If you want to go to the definition, use :Lspsaga goto_definition and :Lspsaga goto_type_definition
|
||||
```
|
||||
Finder - find current element over all files
|
||||
```bash
|
||||
:Lspsaga finder
|
||||
```
|
||||
Floating terminal
|
||||
```bash
|
||||
:Lspsaga term_toggle
|
||||
```
|
||||
Show hover doc (Use `:Lspsaga hover_doc ++keep` if you want to keep the hover window.)
|
||||
```bash
|
||||
:Lspsaga hover_doc
|
||||
```
|
||||
Outline
|
||||
```bash
|
||||
:Lspsaga outline
|
||||
```
|
||||
Rename
|
||||
```bash
|
||||
:Lspsaga rename
|
||||
```
|
||||
|
||||
|
||||
#### LSP diagnostics (custom and trouble.nvim)
|
||||
|
||||
|||
|
||||
|
|
|
@ -16,6 +16,14 @@ require("lazy").setup({
|
|||
priority = 400
|
||||
},
|
||||
-- neovim lsp plugins and depencencies
|
||||
{
|
||||
'nvimdev/lspsaga.nvim',
|
||||
config = function()
|
||||
require('lspsaga').setup({
|
||||
lightbulb = { enable = false }
|
||||
})
|
||||
end,
|
||||
},
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'hrsh7th/cmp-buffer' },
|
||||
{ 'hrsh7th/cmp-cmdline' },
|
||||
|
|
Loading…
Reference in a new issue