dotfiles/setup/commands/setup-nvim-config.rkt

19 lines
542 B
Racket

#lang racket
(require "../common.rkt")
(provide run)
(define (run)
(define nvim-config-dir (build-path (find-system-path 'home-dir) ".config" "nvim"))
(generate-cgopt-json)
(install-zig "mzte-nv" "ReleaseSafe")
(rm nvim-config-dir)
(copy "mzte-nv/conf" nvim-config-dir)
(cmd "haxe"
"-cp" "mzte-nv/haxe"
"--main" "Main"
"-D" "lua-vanilla"
"-D" "dce=full"
"-D" "lua-jit"
"--lua" (build-path nvim-config-dir "lua" "hx.lua"))
(cmd "mzte-nv-compile" (path->string nvim-config-dir))
null)