Skip to content

Commit

Permalink
Return nil from the compile callback to fix Neovim nightly bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Mar 31, 2024
1 parent 9ac9bca commit d6b33ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fnl/nfnl/callback.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
{: root-dir
: cfg
:path (fs.full-path (. ev :file))
:source (nvim.get-buf-content-as-string (. ev :buf))})))
:source (nvim.get-buf-content-as-string (. ev :buf))})
nil))

(fn supported-path? [file-path]
"Returns true if we can work with the given path. Right now we support a path if it's a string and it doesn't start with a protocol segment like fugitive://..."
Expand Down
3 changes: 2 additions & 1 deletion lua/nfnl/callback.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d6b33ae

Please sign in to comment.