2023-05-28 01:16:15 +02:00
|
|
|
(local mztenv (require :mzte_nv))
|
2023-02-18 23:34:09 +01:00
|
|
|
(local cmd vim.cmd)
|
|
|
|
|
2023-05-28 01:16:15 +02:00
|
|
|
;; CPBuf command
|
|
|
|
(vim.api.nvim_create_user_command :CPBuf mztenv.cpbuf.copyBuf {:nargs 0})
|
|
|
|
|
2023-02-18 23:34:09 +01:00
|
|
|
;; Compile commands
|
2023-05-28 01:16:15 +02:00
|
|
|
(let [compile-path mztenv.compile.compilePath
|
2023-02-18 23:34:09 +01:00
|
|
|
make-cmd vim.api.nvim_create_user_command]
|
|
|
|
(make-cmd :CompileConfig
|
|
|
|
#(compile-path (.. (vim.fn.getenv :HOME) :/.config/nvim)) {:nargs 0})
|
|
|
|
(make-cmd :CompilePlugins
|
|
|
|
#(compile-path (. (require :packer) :config :package_root))
|
|
|
|
{:nargs 0}))
|