-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.nvimrc.fnl
More file actions
19 lines (19 loc) · 1.57 KB
/
.nvimrc.fnl
File metadata and controls
19 lines (19 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(vim.api.nvim_create_autocmd :BufWritePost
{:pattern :*.fnl
:callback #(vim.fn.jobstart [:./compile.sh]
{:stdout_buffered true
:stderr_buffered true
:on_stderr (fn [_
data]
(if (and data
(not (= (. data
1)
"")))
(vim.notify (table.concat data
"\n")
vim.log.levels.ERROR)))
:on_exit (fn [_
code]
(if (= code
0)
(vim.notify "Fennel Compiled")))})})