Usage # Dynamically render breadcrumb symbols in your winbar, similar to IDEs
Important
This module is the prerequisite for the outline and the implement module.
Default Options # Default options in symbol_in_winbar section:
enable = true Enable separator = ' › ' Separator symbol hide_keyword = false when true some symbols like if and for Will be ignored (need treesitter) show_file = true Show file name before symbols folder_level = 1 Show how many folder layers before the file name color_mode = true true mean the symbol name and icon have same color.
...
Usage # The callhierarchy module has two commands, :Lspsaga incoming_calls and :Lspsaga outgoing_calls.
Default Options # Default options in callhierarchy section:
layout = 'float' Layout normal and float Or you can pass in an extra argument like :Lspsaga incoming_calls ++normal, which overrides this option Default Keymaps # Default keymaps in callhierarchy.keys:
edit = 'e' edit (open) file vsplit = 's' vsplit split = 'i' split tabe = 't' open in new tab quit = 'q' quit layout shuttle = '[w' shuttle bettween the layout left and right toggle_or_req = 'u' toggle or do request close = '<C-c>k' close layout Suggest Workflow # Same as finder, use keys.
...
Usage # Use :Lspsaga code_action to invoke.
Tips # If you know the action do, just press the action number. If you don’t know what the action do, move to it. Take a look at the action preview, then press <CR>. Default Options # Default options in code_action section:
num_shortcut = true whether number shortcut for code actions are enabled show_server_name = false show language server name extend_gitsigns = false extend gitsigns plugin diff action Default Keymaps # Default keymaps in code_action.
...
Usage # Invoke :Lspsaga diagnostic_jump_next and :Lspsaga diagnostic_jump_prev to jump around diagnostics. When the current cursor position has a diagnostic available, the commands will show the diagnostic in a nice float.
You can use scroll_preview to preview code action in the diagnostic window. Default keybind is <C-f> and <C-b>.
Workflow shown in the GIF set jump_num_shortcut to true.
[e was bind to diagnostic_jump_next with vim.keymap.set('n', '[e', '<cmd>Lspsaga diagnostic_jump_next') The current position has diagnostic, so a diagnostic window is opened in place.
...
Generic UI Options # Generic options for the Lspsaga UI:
border = 'single' Border type, see :help nvim_open_win devicon = true Whether to use nvim-web-devicons title = true Show title in some float window expand = '⊞' Expand icon collapse = '⊟' Collapse icon code_action = '💡' Code action icon actionfix = ' ' Action fix icon lines = { '┗', '┣', '┃', '━', '┏' } Symbols used in virtual text connect kind = {} LSP kind custom table imp_sign = ' ' Implement icon Beacon # In Lspsaga, some commands jump around in buffer(s).
...