From 3dfaa747cabd1585af34700394c00103c51e490f Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 8 Dec 2022 13:22:40 -0800 Subject: [PATCH] Some random changes --- init.fnl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.fnl b/init.fnl index bc3b398..3920d0f 100644 --- a/init.fnl +++ b/init.fnl @@ -52,6 +52,9 @@ (set vim.opt.spelloptions :camel) ; Allow more freedom with the cursor (set vim.opt.virtualedit :block) +; Disable modeline for security +(set vim.opt.modeline false) +(set vim.opt.modelines 0) ;; Remove trailing whitespace (fn remove-trailing-whitespace [] @@ -92,4 +95,8 @@ "h" :c "ui" :xml }}) +;; Better fennel formatting +(hook! :FileType [ :fennel ] + #(set vim.opt_local.equalprg "fnlfmt -")) + (module-call! :packer :startup (require :plugin))