Skip to content

Commit 410f30c

Browse files
committed
diagnostic: auto_preview to false in default
1 parent 979079b commit 410f30c

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

lua/lspsaga/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ local default_config = {
2626
show_layout = 'float',
2727
show_normal_height = 10,
2828
jump_num_shortcut = true,
29-
auto_preview = true,
29+
auto_preview = false,
3030
max_width = 0.8,
3131
max_height = 0.6,
3232
max_show_width = 0.9,
3333
max_show_height = 0.6,
34-
text_hl_follow = true,
35-
border_follow = true,
3634
wrap_long_lines = true,
3735
extend_relatedInformation = false,
3836
diagnostic_only_current = false,

lua/lspsaga/luadoc.lua

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,19 @@
1717
---@field public beacon? LspsagaConfig.Beacon Beacon
1818
---@field public floaterm? LspsagaConfig.Term Floating terminal
1919

20-
2120
---@class LspsagaConfig.Definition
2221
---@field width? number defines float window width
2322
---@field height? number defines float window height
2423
---@field save_pos? boolean Saves cursor position
2524
---@field keys? LspsagaConfig.Definition.Keys
2625

27-
2826
---@class LspsagaConfig.Rename
2927
---@field in_select? boolean
3028
---@field auto_save? boolean
3129
---@field project_max_width? number
3230
---@field project_max_height? number
3331
---@field keys? LspsagaConfig.Rename.Keys
3432

35-
3633
---@class LspsagaConfig.Crumbs
3734
---@field enable? boolean Enable breadcrumbs
3835
---@field separator? string Separator symbol
@@ -43,7 +40,6 @@
4340
---@field color_mode? boolean mean the symbol name and icon have same color. Otherwise, symbol name is light-white
4441
---@field delay? integer Dynamic render delay
4542

46-
4743
---@class LspsagaConfig.Outline
4844
---@field win_position? "left" | "right" window position
4945
---@field win_width? integer window width
@@ -56,26 +52,22 @@
5652
---@field left_width? number Width of left panel
5753
---@field keys? LspsagaConfig.Outline.Keys
5854

59-
6055
---@class LspsagaConfig.Hierarchy
6156
---@field layout? LayoutOption
6257
---@field left_width? number Width of left panel
6358
---@field keys? LspsagaConfig.Hierarchy.Keys
6459

65-
6660
---@class LspsagaConfig.Implement
6761
---@field enable? boolean Enable implementation plugin
6862
---@field sign? boolean show sign in status column
6963
---@field lang? string[] Additional languages that support implementing interfaces
7064
---@field virtual_text? boolean show virtual text at the end of line
7165
---@field priority? integer sign priority
7266

73-
7467
---@class LspsagaConfig.Term
7568
---@field height? number Floating terminal height
7669
---@field width? number Floating terminal width
7770

78-
7971
---@class LspsagaConfig.Ui
8072
---@field border? BorderType Border type, see `:help nvim_open_win`
8173
---@field devicon? boolean Whether to use nvim-web-devicons
@@ -89,14 +81,12 @@
8981
---@field button? [string, string] Button icon { '', '' }
9082
---@field imp_sign? string Implement icon
9183

92-
9384
---@class LspsagaConfig.Hover
9485
---@field max_width? number Defines float window width
9586
---@field max_height? number Defines float window height
9687
---@field open_link? string Key for opening links
9788
---@field open_cmd? string Cmd for opening links
9889

99-
10090
---@class LspsagaConfig.Diagnostic
10191
---@field show_layout? LayoutOption Config layout of diagnostic window not jump window
10292
---@field show_normal_height? integer Show window height when diagnostic show window layout is normal
@@ -106,14 +96,11 @@
10696
---@field max_height? number Diagnostic jump window max height
10797
---@field max_show_width? number Show window max width when layout is float
10898
---@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
11199
---@field wrap_long_lines? boolean Wrap long lines
112100
---@field extend_relatedInformation? boolean When have relatedInformation, diagnostic message is extended to show it
113101
---@field diagnostic_only_current? boolean Only show diagnostic virtual text on the current line
114102
---@field keys? LspsagaConfig.Diagnostic.Keys
115103

116-
117104
---@class LspsagaConfig.CodeAction
118105
---@field num_shortcut? boolean Enable number shortcuts to execute code action quickly
119106
---@field show_server_name? boolean show language server name
@@ -123,7 +110,6 @@
123110
---@field cursorline? boolean code action window highlight cursor line
124111
---@field keys? LspsagaConfig.CodeAction.Keys
125112

126-
127113
---@class LspsagaConfig.Lightbulb
128114
---@field enable? boolean enable lightbulb
129115
---@field sign? boolean show sign in status column
@@ -132,7 +118,6 @@
132118
---@field virtual_text? boolean show virtual text at the end of line
133119
---@field enable_in_insert? boolean enable virtual text in insert mode
134120

135-
136121
---@class LspsagaConfig.Finder
137122
---@field max_height? number max_height of the finder window (float layout)
138123
---@field left_width? number width of left panel in finder window
@@ -147,29 +132,24 @@
147132
---@field ly_botright? boolean
148133
---@field keys? LspsagaConfig.Finder.Keys
149134

150-
151135
---@class LspsagaConfig.Beacon
152136
---@field enable? boolean Enable beacon
153137
---@field frequency? integer
154138

155-
156139
---@class LspsagaConfig.Scroll.Keys
157140
---@field scroll_down? SagaKeys
158141
---@field scroll_up? SagaKeys
159142

160-
161143
---@class LspsagaConfig.Diagnostic.Keys
162144
---@field exec_action? SagaKeys execute action (in jump window)
163145
---@field quit? SagaKeys quit key for the jump window
164146
---@field toggle_or_jump? SagaKeys toggle or jump to position when in `diagnostic_show` window
165147
---@field quit_in_show? SagaKeys quit key for the `diagnostic_show` window
166148

167-
168149
---@class LspsagaConfig.CodeAction.Keys
169150
---@field quit? SagaKeys quit the float window
170151
---@field exec? SagaKeys execute action
171152

172-
173153
---@class LspsagaConfig.Finder.Keys
174154
---@field shuttle? SagaKeys shuttle between the finder layout window
175155
---@field toggle_or_open? SagaKeys toggle expand or open
@@ -180,7 +160,6 @@
180160
---@field quit? SagaKeys quit the finder; only works in layout left window
181161
---@field close? SagaKeys close the finder
182162

183-
184163
---@class LspsagaConfig.Hierarchy.Keys
185164
---@field edit? SagaKeys
186165
---@field vsplit? SagaKeys open in vsplit
@@ -191,13 +170,11 @@
191170
---@field close? SagaKeys close the hierarchy
192171
---@field toggle_or_req? SagaKeys toggle or do request
193172

194-
195173
---@class LspsagaConfig.Outline.Keys
196174
---@field toggle_or_jump? SagaKeys toggle or jump
197175
---@field quit? SagaKeys quit
198176
---@field jump? SagaKeys jump to pos even on expand/collapse node
199177

200-
201178
---@class LspsagaConfig.Definition.Keys
202179
---@field edit? SagaKeys
203180
---@field vsplit? SagaKeys open in vsplit
@@ -206,17 +183,14 @@
206183
---@field quit? SagaKeys quit the definition
207184
---@field close? SagaKeys close the definition
208185

209-
210186
---@class LspsagaConfig.Rename.Keys
211187
---@field quit? SagaKeys quit rename window or `project_replace` window
212188
---@field exec? SagaKeys execute rename in `rename` window or execute replace in `project_replace` window
213189
---@field select? SagaKeys select or cancel select item in `project_replace` float window
214190

215-
216191
---@alias LayoutOption "float" | "normal"
217192
---@alias BorderType "none" | "single" | "double" | "rounded" | "solid" | "shadow" | string[]
218193
---@alias SagaKeys string | string[]
219194

220-
221195
---@class LspMethods
222196
---@field [string] string Keys are alias of LSP methods. Values are LSP methods, which you want to show in finder.

0 commit comments

Comments
 (0)