diff options
Diffstat (limited to 'fnl/config/autocmd.fnl')
-rw-r--r-- | fnl/config/autocmd.fnl | 29 |
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 ="}) |