# home.scm -rw-r--r-- 494 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
(define %neovim-config
  (computed-file "nvim.lua"
    #~(begin
       (use-modules (ice-9 popen)
                    (ice-9 textual-ports))
       (let* ((pipe (open-input-pipe
                     (string-append #$(file-append fennel "/bin/fennel")
                                    " --compile " #$%conf-dir "/nvim.fnl")))
              (output (get-string-all pipe)))
         (close-pipe pipe)
         (call-with-output-file #$output
	   (lambda (file)
	     (display output file)))))))