summaryrefslogtreecommitdiff
path: root/fnl/config/trim.fnl
blob: 156241f839a57d735f21b0d22e7b8ea553c61b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;; Trim whitespaces on save.
(module config.trim {autoload {util util}})

(let [trim (util.load-plugin :trim)]
  (trim.setup {
  :disable []
  :patterns [
    "%s/\s\+$//e"
    "%s/\($\n\s*\)\+\%$//"
    "%s/\%^\n\+//"
    "%s/\(\n\n\)\n\+/\1/"
  ]
}))