diff --git a/README.md b/README.md index 0921ed0..c4a191b 100644 --- a/README.md +++ b/README.md @@ -321,6 +321,42 @@ GitSings provides some commands for displaying git stuff: |\wr |remove workspace folder| |\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) ||| diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index 8d1e74e..68e65e1 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -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' },