From 1a26f6ccd60b081bbcbe168a4feb2aacc782e77c Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 19 May 2023 15:08:56 -0700 Subject: [PATCH] Fix formatting --- fnl/plugin.fnl | 3 +-- fnl/plugin/lsp.fnl | 17 ++++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/fnl/plugin.fnl b/fnl/plugin.fnl index dfe09d4..1f2e215 100644 --- a/fnl/plugin.fnl +++ b/fnl/plugin.fnl @@ -2,8 +2,7 @@ (import-macros {: bind! : hook! : use! : setup! - : module-call! - : module-fn! } :macros) + : module-call!} :macros) (fn [use] ;; Packer diff --git a/fnl/plugin/lsp.fnl b/fnl/plugin/lsp.fnl index 5ddc2ee..37a92b8 100644 --- a/fnl/plugin/lsp.fnl +++ b/fnl/plugin/lsp.fnl @@ -115,13 +115,16 @@ (let [builtins (. (require :null-ls) :builtins)] (setup! :null-ls :on_attach (fn [client buf] - (bind! [ :n :v ] :o - #(vim.lsp.buf.format { :filter - ;; use null-ls for formatting - (fn [client] (or - (= client.name :null-ls) - (= client.name :rust_analyzer))) - :async true }) buf) + (bind! [ :n :v ] + :o + #(vim.lsp.buf.format + { :filter + ;; use null-ls for formatting + (fn [client] + (or + (= client.name :null-ls) + (= client.name :rust_analyzer))) + :async true }) buf) (vim.api.nvim_buf_set_option buf :formatexpr "")) :sources [ builtins.formatting.astyle