summaryrefslogtreecommitdiff
path: root/fnl/config/autocmd.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 18:52:34 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 18:52:34 +0200
commitb74c9dd22e632bbe720587db92966c4d6811b766 (patch)
treef68e5bb862fd5a800f86852e535d29984f461cb3 /fnl/config/autocmd.fnl
parent274648011686b1c822e63b03bdcc6f2ce8e9b41e (diff)
style: format with fnlfmt
Diffstat (limited to 'fnl/config/autocmd.fnl')
-rw-r--r--fnl/config/autocmd.fnl117
1 files changed, 49 insertions, 68 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index c5e7ae5..ecec60a 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -1,69 +1,50 @@
;; A customizable greeter.
-(module config.autocmd
- {autoload {util util}})
-
-(util.autocmd
- :FileType
- {:pattern [ :qf :help :man :lspinfo ]
- :command "nnoremap <silent> <buffer> q :close<CR>"
- :group :_general_settings})
-
-(util.autocmd
- :TextYankPost
- {:pattern [ :* ]
- :callback (lambda [] (vim.highlight.on_yank {:timeout 200}))
- :group :_general_settings})
-
-(util.autocmd
- :BufWinEnter
- {:pattern [ :* ]
- :command ":set formatoptions-=cro"
- :group :_general_settings})
-
-(util.autocmd
- :FileType
- {:pattern [ :qf ]
- :command "set nobuflisted"
- :group :_general_settings})
-
-(util.autocmd
- :FileType
- {:pattern [ :gitcommit ]
- :command "setlocal wrap"
- :group :_git})
-
-(util.autocmd
- :FileType
- {:pattern [ :gitcommit ]
- :command "setlocal spell"
- :group :_git})
-
-(util.autocmd
- :FileType
- {:pattern [ :markdown ]
- :command "setlocal wrap"
- :group :_markdown})
-
-(util.autocmd
- :FileType
- {:pattern [ :markdown ]
- :command "setlocal spell"
- :group :_markdown})
-
-(util.autocmd
- :VimResized
- {:pattern [ :* ]
- :command "tabdo wincmd ="
- :group :_auto_resize})
-
-(util.autocmd
- :User
- {:pattern [ :AlphaReady ]
- :command "set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2"
- :group :_alpha})
-
-(util.autocmd
- :BufWritePost
- {:pattern [ :plugins.fnl ]
- :command "source <afile> | PackerSync"
- :group :packer_user_config})
+(module config.autocmd {autoload {util util}})
+
+(util.autocmd :FileType {:pattern [:qf :help :man :lspinfo]
+ :command "nnoremap <silent> <buffer> q :close<CR>"
+ :group :_general_settings})
+
+(util.autocmd :TextYankPost
+ {:pattern ["*"]
+ :callback (lambda []
+ (vim.highlight.on_yank {:timeout 200}))
+ :group :_general_settings})
+
+(util.autocmd :BufWinEnter
+ {:pattern ["*"]
+ :command ":set formatoptions-=cro"
+ :group :_general_settings})
+
+(util.autocmd :FileType {:pattern [:qf]
+ :command "set nobuflisted"
+ :group :_general_settings})
+
+(util.autocmd :FileType {:pattern [:gitcommit]
+ :command "setlocal wrap"
+ :group :_git})
+
+(util.autocmd :FileType {:pattern [:gitcommit]
+ :command "setlocal spell"
+ :group :_git})
+
+(util.autocmd :FileType {:pattern [:markdown]
+ :command "setlocal wrap"
+ :group :_markdown})
+
+(util.autocmd :FileType {:pattern [:markdown]
+ :command "setlocal spell"
+ :group :_markdown})
+
+(util.autocmd :VimResized {:pattern ["*"]
+ :command "tabdo wincmd ="
+ :group :_auto_resize})
+
+(util.autocmd :User {:pattern [:AlphaReady]
+ :command "set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2"
+ :group :_alpha})
+
+(util.autocmd :BufWritePost
+ {:pattern [:plugins.fnl]
+ :command "source <afile> | PackerSync"
+ :group :packer_user_config})