diff --git a/.nfnl.fnl b/.nfnl.fnl index 6caf408..c2f296b 100644 --- a/.nfnl.fnl +++ b/.nfnl.fnl @@ -24,7 +24,10 @@ ;; autocmd, so it'll only apply to buffers you're interested in. ;; Will use backslashes on Windows. ;; Defaults to compiling all .fnl files, you may want to limit it to your fnl/ directory. - :source-file-patterns [:./fnl/.*.fnl :./fnl/*.fnl :./fnl/**/*.fnl :./init.fnl] + :source-file-patterns [:./fnl/.*.fnl + :./fnl/*.fnl + :./fnl/**/*.fnl + :./new-init.fnl] ;; A function that is given the absolute path of a Fennel file and should return ;; the equivalent Lua path, by default this will translate `fnl/foo/bar.fnl` to `lua/foo/bar.lua`. ;; See the "Writing Lua elsewhere" tip below for an example function that writes to a sub directory. diff --git a/fnl/plugins/autopairs.fnl b/fnl/plugins/autopairs.fnl index 7133043..27a985d 100644 --- a/fnl/plugins/autopairs.fnl +++ b/fnl/plugins/autopairs.fnl @@ -1,3 +1,3 @@ (import-macros {: tx} :config.macros) (tx :nvim-autopairs - {:event :BufEnter :after (fn [] (. (require :nvim-autopairs) :setup))}) + {:event :BufEnter :after (. (require :nvim-autopairs) :setup)}) diff --git a/lua/plugins/autopairs.lua b/lua/plugins/autopairs.lua index f0e1cb5..6a46740 100644 --- a/lua/plugins/autopairs.lua +++ b/lua/plugins/autopairs.lua @@ -1,5 +1,2 @@ -- [nfnl] Compiled from ./fnl/plugins/autopairs.fnl by https://github.com/Olical/nfnl, do not edit. -local function _1_() - return require("nvim-autopairs").setup -end -return {"nvim-autopairs", after = _1_, event = "BufEnter"} +return {"nvim-autopairs", after = require("nvim-autopairs").setup, event = "BufEnter"} diff --git a/new-init.fnl b/new-init.fnl new file mode 100644 index 0000000..cf2b3f5 --- /dev/null +++ b/new-init.fnl @@ -0,0 +1,4 @@ +(if (os.getenv :TERM) + ((. (require :scripts.chameleon) :setup) (. (require :scripts.kitty-padding) + :setup)) + {}) diff --git a/new-init.lua b/new-init.lua new file mode 100644 index 0000000..07be0e1 --- /dev/null +++ b/new-init.lua @@ -0,0 +1,6 @@ +-- [nfnl] Compiled from ./new-init.fnl by https://github.com/Olical/nfnl, do not edit. +if os.getenv("TERM") then + return require("scripts.chameleon").setup(require("scripts.kitty-padding").setup) +else + return {} +end