Fix formatting
This commit is contained in:
parent
90fcd5db92
commit
1a26f6ccd6
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
(import-macros {: bind! : hook!
|
(import-macros {: bind! : hook!
|
||||||
: use! : setup!
|
: use! : setup!
|
||||||
: module-call!
|
: module-call!} :macros)
|
||||||
: module-fn! } :macros)
|
|
||||||
|
|
||||||
(fn [use]
|
(fn [use]
|
||||||
;; Packer
|
;; Packer
|
||||||
|
@ -115,10 +115,13 @@
|
|||||||
(let [builtins (. (require :null-ls) :builtins)]
|
(let [builtins (. (require :null-ls) :builtins)]
|
||||||
(setup! :null-ls
|
(setup! :null-ls
|
||||||
:on_attach (fn [client buf]
|
:on_attach (fn [client buf]
|
||||||
(bind! [ :n :v ] :<leader>o
|
(bind! [ :n :v ]
|
||||||
#(vim.lsp.buf.format { :filter
|
:<leader>o
|
||||||
|
#(vim.lsp.buf.format
|
||||||
|
{ :filter
|
||||||
;; use null-ls for formatting
|
;; use null-ls for formatting
|
||||||
(fn [client] (or
|
(fn [client]
|
||||||
|
(or
|
||||||
(= client.name :null-ls)
|
(= client.name :null-ls)
|
||||||
(= client.name :rust_analyzer)))
|
(= client.name :rust_analyzer)))
|
||||||
:async true }) buf)
|
:async true }) buf)
|
||||||
|
Reference in New Issue
Block a user