File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 6868function M .lsp_setup (server )
6969 local opts , default_handler
7070 if M .config .native_lsp_config then
71- opts = M .lsp_config (server )
71+ opts = M .lsp_opts (server )
7272 default_handler = function (server_name ) vim .lsp .enable (server_name ) end
7373 else
7474 -- if server doesn't exist, set it up from user server definition
@@ -91,9 +91,8 @@ function M.lsp_setup(server)
9191 end
9292 end
9393 end
94- local handler = M .config .handlers [server ]
95- if handler == nil then handler = M .config .handlers [1 ] end
96- (handler or default_handler )(server , opts )
94+ local handler = vim .F .if_nil (M .config .handlers [server ], M .config .handlers [1 ], default_handler )
95+ if handler then handler (server , opts ) end
9796end
9897
9998--- The `on_attach` function used by AstroNvim
You can’t perform that action at this time.
0 commit comments