2022-05-12 21:49:19 +02: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]} []))
|
|
|
|
|
2023-11-20 21:59:54 +01:00
|
|
|
(fn mod.highlight-get [name]
|
|
|
|
`(vim.api.nvim_get_hl 0 {:name ,name :link false}))
|
|
|
|
|
|
|
|
(fn mod.highlight-get-field [name field]
|
|
|
|
`(. (vim.api.nvim_get_hl 0 {:name ,name :link false}) ,field))
|
|
|
|
|
2022-05-31 15:46:32 +02:00
|
|
|
(fn mod.deferred_cmd [args delay]
|
2023-11-20 21:59:54 +01:00
|
|
|
`(vim.defer_fn #(vim.api.nvim_cmd ,args [])
|
|
|
|
,delay))
|
2022-05-31 15:46:32 +02:00
|
|
|
|
2022-05-12 21:49:19 +02:00
|
|
|
mod)
|