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))