summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fnl/config/autocmd.fnl9
1 files changed, 8 insertions, 1 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index c851d3d..3319919 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -18,8 +18,15 @@
(autocmd :FileType {:pattern :qf :command "set nobuflisted"})
+(autocmd :FileType
+ {:pattern :lir
+ :callback (fn []
+ (tset vim.opt_local :number false)
+ (tset vim.opt_local :relativenumber false))})
+
(autocmd :FileType {:pattern [:gitcommit :markdown] :command "setlocal wrap"})
-(autocmd :FileType {:pattern [:gitcommit :markdown :org :plaintex] :command "setlocal spell"})
+(autocmd :FileType {:pattern [:gitcommit :markdown :org :plaintex]
+ :command "setlocal spell"})
(autocmd :VimResized {:command "tabdo wincmd ="})