File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181local function on_attach (client )
8282 -- Register the client for messages
8383 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' )
8487
8588 -- If the client is a documentSymbolProvider, set up an autocommand
8689 -- to update the containing symbol
8790 if _config .current_function and client .resolved_capabilities .document_symbol then
88- vim .api .nvim_command (' augroup lsp_aucmds' )
8991 vim .api .nvim_command (
9092 ' au CursorHold <buffer> lua require("lsp-status").update_current_function()'
9193 )
92- vim .api .nvim_command (' augroup END' )
9394 end
9495
96+ vim .api .nvim_command (' augroup END' )
97+
9598 timer .register_timer ()
9699end
97100
You can’t perform that action at this time.
0 commit comments