dotfiles/home/config/nvim/macros/cmd.fnl

16 lines
391 B
Text
Raw Normal View History

2022-05-12 19:49:19 +00:00
(let [mod {}]
(fn mod.colorscheme [name]
`(vim.api.nvim_cmd {:cmd :colorscheme :args [,name]} []))
(fn mod.highlight [name value]
`(vim.api.nvim_set_hl 0 ,name ,value))
(fn mod.highlight-link [src dst]
`(vim.api.nvim_cmd {:cmd :highlight :args [:link ,src ,dst]} []))
2022-05-31 13:46:32 +00:00
(fn mod.deferred_cmd [args delay]
`(vim.defer_fn #(vim.api.nvim_cmd ,args []) ,delay))
2022-05-12 19:49:19 +00:00
mod)