We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7fbe0 commit 526cbbbCopy full SHA for 526cbbb
fnl/nfnl/init.fnl
@@ -1,5 +1,8 @@
1
-(local {: autoload} (require :nfnl.module))
+(local {: autoload : define} (require :nfnl.module))
2
(local callback (autoload :nfnl.callback))
3
+(local vim _G.vim)
4
+
5
+(local M (define :nfnl))
6
7
(local minimum-neovim-version "0.9.0")
8
@@ -18,10 +21,10 @@
18
21
{:file (vim.fn.expand "%")
19
22
:buf (vim.api.nvim_get_current_buf)})))
20
23
-(fn setup [opts]
24
+(fn M.setup [opts]
25
"Sets the vim.g.nfnl#... variables in a slightly more Lua friendly way."
26
27
(when opts
28
(set vim.g.nfnl#compile_on_write opts.compile_on_write)))
29
-{: setup}
30
+M
lua/nfnl/init.lua
0 commit comments