summaryrefslogtreecommitdiff
path: root/fnl/config/autocmd.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-01 23:06:03 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-01 23:06:03 +0200
commitf845a7b0588559750b1cb7eede1b3aecb450cdfe (patch)
tree1c2028e77ef60fb5a00e0abce46a0d4bf66d76d9 /fnl/config/autocmd.fnl
parent609daf2f632e907f0aed920084b51f608a63edf7 (diff)
style: fmt with fnlfmt
Diffstat (limited to 'fnl/config/autocmd.fnl')
-rw-r--r--fnl/config/autocmd.fnl29
1 files changed, 9 insertions, 20 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index a3b58d1..d344015 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -1,11 +1,7 @@
;; Autocommands for nvim.
-(module config.autocmd
- {autoload {nvim aniseed.nvim
- a aniseed.core
- util util}})
+(module config.autocmd {autoload {nvim aniseed.nvim a aniseed.core util util}})
-(defn- autocmd [event opts]
- (nvim.create_autocmd event opts))
+(defn- autocmd [event opts] (nvim.create_autocmd event opts))
(autocmd :User
{:pattern :AlphaReady
@@ -19,22 +15,15 @@
:command "nnoremap <silent> <buffer> q :close<CR>"})
(autocmd :TextYankPost
- {:callback (lambda [] (vim.highlight.on_yank {:timeout 200}))})
+ {:callback (lambda []
+ (vim.highlight.on_yank {:timeout 200}))})
-(autocmd :BufWinEnter
- {:command "setlocal formatoptions-=cro"})
+(autocmd :BufWinEnter {:command "setlocal formatoptions-=cro"})
-(autocmd :FileType
- {:pattern "qf"
- :command "set nobuflisted"})
+(autocmd :FileType {:pattern :qf :command "set nobuflisted"})
-(autocmd :FileType
- {:pattern [:gitcommit :markdown]
- :command "setlocal wrap"})
+(autocmd :FileType {:pattern [:gitcommit :markdown] :command "setlocal wrap"})
-(autocmd :FileType
- {:pattern [:gitcommit :markdown]
- :command "setlocal spell"})
+(autocmd :FileType {:pattern [:gitcommit :markdown] :command "setlocal spell"})
-(autocmd :VimResized
- {:command "tabdo wincmd ="})
+(autocmd :VimResized {:command "tabdo wincmd ="})