|
17 | 17 | ---@field public beacon? LspsagaConfig.Beacon Beacon |
18 | 18 | ---@field public floaterm? LspsagaConfig.Term Floating terminal |
19 | 19 |
|
20 | | - |
21 | 20 | ---@class LspsagaConfig.Definition |
22 | 21 | ---@field width? number defines float window width |
23 | 22 | ---@field height? number defines float window height |
24 | 23 | ---@field save_pos? boolean Saves cursor position |
25 | 24 | ---@field keys? LspsagaConfig.Definition.Keys |
26 | 25 |
|
27 | | - |
28 | 26 | ---@class LspsagaConfig.Rename |
29 | 27 | ---@field in_select? boolean |
30 | 28 | ---@field auto_save? boolean |
31 | 29 | ---@field project_max_width? number |
32 | 30 | ---@field project_max_height? number |
33 | 31 | ---@field keys? LspsagaConfig.Rename.Keys |
34 | 32 |
|
35 | | - |
36 | 33 | ---@class LspsagaConfig.Crumbs |
37 | 34 | ---@field enable? boolean Enable breadcrumbs |
38 | 35 | ---@field separator? string Separator symbol |
|
43 | 40 | ---@field color_mode? boolean mean the symbol name and icon have same color. Otherwise, symbol name is light-white |
44 | 41 | ---@field delay? integer Dynamic render delay |
45 | 42 |
|
46 | | - |
47 | 43 | ---@class LspsagaConfig.Outline |
48 | 44 | ---@field win_position? "left" | "right" window position |
49 | 45 | ---@field win_width? integer window width |
|
56 | 52 | ---@field left_width? number Width of left panel |
57 | 53 | ---@field keys? LspsagaConfig.Outline.Keys |
58 | 54 |
|
59 | | - |
60 | 55 | ---@class LspsagaConfig.Hierarchy |
61 | 56 | ---@field layout? LayoutOption |
62 | 57 | ---@field left_width? number Width of left panel |
63 | 58 | ---@field keys? LspsagaConfig.Hierarchy.Keys |
64 | 59 |
|
65 | | - |
66 | 60 | ---@class LspsagaConfig.Implement |
67 | 61 | ---@field enable? boolean Enable implementation plugin |
68 | 62 | ---@field sign? boolean show sign in status column |
69 | 63 | ---@field lang? string[] Additional languages that support implementing interfaces |
70 | 64 | ---@field virtual_text? boolean show virtual text at the end of line |
71 | 65 | ---@field priority? integer sign priority |
72 | 66 |
|
73 | | - |
74 | 67 | ---@class LspsagaConfig.Term |
75 | 68 | ---@field height? number Floating terminal height |
76 | 69 | ---@field width? number Floating terminal width |
77 | 70 |
|
78 | | - |
79 | 71 | ---@class LspsagaConfig.Ui |
80 | 72 | ---@field border? BorderType Border type, see `:help nvim_open_win` |
81 | 73 | ---@field devicon? boolean Whether to use nvim-web-devicons |
|
89 | 81 | ---@field button? [string, string] Button icon { '', '' } |
90 | 82 | ---@field imp_sign? string Implement icon |
91 | 83 |
|
92 | | - |
93 | 84 | ---@class LspsagaConfig.Hover |
94 | 85 | ---@field max_width? number Defines float window width |
95 | 86 | ---@field max_height? number Defines float window height |
96 | 87 | ---@field open_link? string Key for opening links |
97 | 88 | ---@field open_cmd? string Cmd for opening links |
98 | 89 |
|
99 | | - |
100 | 90 | ---@class LspsagaConfig.Diagnostic |
101 | 91 | ---@field show_layout? LayoutOption Config layout of diagnostic window not jump window |
102 | 92 | ---@field show_normal_height? integer Show window height when diagnostic show window layout is normal |
|
106 | 96 | ---@field max_height? number Diagnostic jump window max height |
107 | 97 | ---@field max_show_width? number Show window max width when layout is float |
108 | 98 | ---@field max_show_height? number Show window max height when layout is float |
109 | | ----@field text_hl_follow? boolean Diagnostic jump window text highlight follow diagnostic type |
110 | | ----@field border_follow? boolean Diagnostic jump window border highlight follow diagnostic type |
111 | 99 | ---@field wrap_long_lines? boolean Wrap long lines |
112 | 100 | ---@field extend_relatedInformation? boolean When have relatedInformation, diagnostic message is extended to show it |
113 | 101 | ---@field diagnostic_only_current? boolean Only show diagnostic virtual text on the current line |
114 | 102 | ---@field keys? LspsagaConfig.Diagnostic.Keys |
115 | 103 |
|
116 | | - |
117 | 104 | ---@class LspsagaConfig.CodeAction |
118 | 105 | ---@field num_shortcut? boolean Enable number shortcuts to execute code action quickly |
119 | 106 | ---@field show_server_name? boolean show language server name |
|
123 | 110 | ---@field cursorline? boolean code action window highlight cursor line |
124 | 111 | ---@field keys? LspsagaConfig.CodeAction.Keys |
125 | 112 |
|
126 | | - |
127 | 113 | ---@class LspsagaConfig.Lightbulb |
128 | 114 | ---@field enable? boolean enable lightbulb |
129 | 115 | ---@field sign? boolean show sign in status column |
|
132 | 118 | ---@field virtual_text? boolean show virtual text at the end of line |
133 | 119 | ---@field enable_in_insert? boolean enable virtual text in insert mode |
134 | 120 |
|
135 | | - |
136 | 121 | ---@class LspsagaConfig.Finder |
137 | 122 | ---@field max_height? number max_height of the finder window (float layout) |
138 | 123 | ---@field left_width? number width of left panel in finder window |
|
147 | 132 | ---@field ly_botright? boolean |
148 | 133 | ---@field keys? LspsagaConfig.Finder.Keys |
149 | 134 |
|
150 | | - |
151 | 135 | ---@class LspsagaConfig.Beacon |
152 | 136 | ---@field enable? boolean Enable beacon |
153 | 137 | ---@field frequency? integer |
154 | 138 |
|
155 | | - |
156 | 139 | ---@class LspsagaConfig.Scroll.Keys |
157 | 140 | ---@field scroll_down? SagaKeys |
158 | 141 | ---@field scroll_up? SagaKeys |
159 | 142 |
|
160 | | - |
161 | 143 | ---@class LspsagaConfig.Diagnostic.Keys |
162 | 144 | ---@field exec_action? SagaKeys execute action (in jump window) |
163 | 145 | ---@field quit? SagaKeys quit key for the jump window |
164 | 146 | ---@field toggle_or_jump? SagaKeys toggle or jump to position when in `diagnostic_show` window |
165 | 147 | ---@field quit_in_show? SagaKeys quit key for the `diagnostic_show` window |
166 | 148 |
|
167 | | - |
168 | 149 | ---@class LspsagaConfig.CodeAction.Keys |
169 | 150 | ---@field quit? SagaKeys quit the float window |
170 | 151 | ---@field exec? SagaKeys execute action |
171 | 152 |
|
172 | | - |
173 | 153 | ---@class LspsagaConfig.Finder.Keys |
174 | 154 | ---@field shuttle? SagaKeys shuttle between the finder layout window |
175 | 155 | ---@field toggle_or_open? SagaKeys toggle expand or open |
|
180 | 160 | ---@field quit? SagaKeys quit the finder; only works in layout left window |
181 | 161 | ---@field close? SagaKeys close the finder |
182 | 162 |
|
183 | | - |
184 | 163 | ---@class LspsagaConfig.Hierarchy.Keys |
185 | 164 | ---@field edit? SagaKeys |
186 | 165 | ---@field vsplit? SagaKeys open in vsplit |
|
191 | 170 | ---@field close? SagaKeys close the hierarchy |
192 | 171 | ---@field toggle_or_req? SagaKeys toggle or do request |
193 | 172 |
|
194 | | - |
195 | 173 | ---@class LspsagaConfig.Outline.Keys |
196 | 174 | ---@field toggle_or_jump? SagaKeys toggle or jump |
197 | 175 | ---@field quit? SagaKeys quit |
198 | 176 | ---@field jump? SagaKeys jump to pos even on expand/collapse node |
199 | 177 |
|
200 | | - |
201 | 178 | ---@class LspsagaConfig.Definition.Keys |
202 | 179 | ---@field edit? SagaKeys |
203 | 180 | ---@field vsplit? SagaKeys open in vsplit |
|
206 | 183 | ---@field quit? SagaKeys quit the definition |
207 | 184 | ---@field close? SagaKeys close the definition |
208 | 185 |
|
209 | | - |
210 | 186 | ---@class LspsagaConfig.Rename.Keys |
211 | 187 | ---@field quit? SagaKeys quit rename window or `project_replace` window |
212 | 188 | ---@field exec? SagaKeys execute rename in `rename` window or execute replace in `project_replace` window |
213 | 189 | ---@field select? SagaKeys select or cancel select item in `project_replace` float window |
214 | 190 |
|
215 | | - |
216 | 191 | ---@alias LayoutOption "float" | "normal" |
217 | 192 | ---@alias BorderType "none" | "single" | "double" | "rounded" | "solid" | "shadow" | string[] |
218 | 193 | ---@alias SagaKeys string | string[] |
219 | 194 |
|
220 | | - |
221 | 195 | ---@class LspMethods |
222 | 196 | ---@field [string] string Keys are alias of LSP methods. Values are LSP methods, which you want to show in finder. |
0 commit comments