dotfiles/mzte-nv/conf/lua/settings.fnl

17 lines
522 B
Plaintext
Raw Normal View History

2023-05-28 01:16:15 +02:00
(local mztenv (require :mzte_nv))
(local cmd vim.cmd)
2024-04-05 22:56:00 +02:00
;; Update $PATH with nvim tools path
(let [lsppath mztenv.reg.nvim_tools]
(when lsppath
(set vim.env.PATH (.. lsppath "/bin:" vim.env.PATH))))
2023-05-28 01:16:15 +02:00
;; CPBuf command
(vim.api.nvim_create_user_command :CPBuf mztenv.cpbuf.copyBuf {:nargs 0})
;; Compile commands
2023-05-28 01:16:15 +02:00
(let [compile-path mztenv.compile.compilePath
make-cmd vim.api.nvim_create_user_command]
(make-cmd :CompileConfig
2024-04-26 16:06:58 +02:00
#(compile-path (.. (vim.fn.getenv :HOME) :/.config/nvim)) {:nargs 0}))