From 3f81479bc6792c17df1379a14995678e725f3f05 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 29 Nov 2022 07:00:48 -0800 Subject: [PATCH] Simply lsp init --- init.fnl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.fnl b/init.fnl index 02d2dc4..ef4f493 100644 --- a/init.fnl +++ b/init.fnl @@ -434,6 +434,10 @@ (do (tset opts last_key val) (set last_key nil)) (set last_key val))) + (if (not opts.on_attach) + (tset opts :on_attach `on_attach)) + (if (not opts.capabilities) + (tset opts :capabilities `lsp_cap)) `((. (. lsp ,name) :setup) ,opts)) `((. (. lsp ,name) :setup) default_config))) (setup_server! :ccls) @@ -442,8 +446,6 @@ (setup_server! :rust_analyzer) (setup_server! :texlab) (setup_server! :sumneko_lua - :on_attach on_attach - :capabilities lsp_cap :settings { :Lua { :runtime {