File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 81
81
local function on_attach (client )
82
82
-- Register the client for messages
83
83
messaging .register_client (client .id , client .name )
84
+ vim .api .nvim_command (' augroup lsp_aucmds' )
85
+ vim .api .nvim_command (' au! * <buffer>' )
86
+ vim .api .nvim_command (' au User LspDiagnosticsChanged let g:lsp_status_redraw = v:true' )
84
87
85
88
-- If the client is a documentSymbolProvider, set up an autocommand
86
89
-- to update the containing symbol
87
90
if _config .current_function and client .resolved_capabilities .document_symbol then
88
- vim .api .nvim_command (' augroup lsp_aucmds' )
89
91
vim .api .nvim_command (
90
92
' au CursorHold <buffer> lua require("lsp-status").update_current_function()'
91
93
)
92
- vim .api .nvim_command (' augroup END' )
93
94
end
94
95
96
+ vim .api .nvim_command (' augroup END' )
97
+
95
98
timer .register_timer ()
96
99
end
97
100
You can’t perform that action at this time.
0 commit comments