From 01b380f4e429ddddb812fb3f52b5546016629732 Mon Sep 17 00:00:00 2001 From: Vegard Berg Date: Tue, 23 May 2023 15:12:26 +0200 Subject: [PATCH] Misc Fennel tomfoolery --- fnl/foo.fnl | 6 ++++++ fnl/init.fnl | 5 +++-- init.lua | 48 +++++++++++++++++++++++++++++++++++++++++ lazy-lock.json | 3 ++- lua/plugins/aniseed.lua | 4 ++++ 5 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 fnl/foo.fnl diff --git a/fnl/foo.fnl b/fnl/foo.fnl new file mode 100644 index 0000000..7cd8054 --- /dev/null +++ b/fnl/foo.fnl @@ -0,0 +1,6 @@ +(fn say-hi [name] (print (.. "Hello, " name))) +(fn say-bye [name] (print (.. "Adios, " name))) + +;{:sayHi say-hi + ;:sayBye say-bye) + diff --git a/fnl/init.fnl b/fnl/init.fnl index fef9568..ee4fdb4 100644 --- a/fnl/init.fnl +++ b/fnl/init.fnl @@ -1,5 +1,5 @@ -(module nvim-config - {autoload {nvim aniseed.nvim}}) +;; (module nvim-config +;; {autoload {nvim aniseed.nvim}} ;;(vim.cmd.colorscheme "industry") ;; Done in init.lua instead, as it @@ -29,6 +29,7 @@ :sources (cmp.config.sources [{:name "nvim_lsp"} + {:name "nvim_lua"} {:name "luasnip"} {:name "buffer"}])}) diff --git a/init.lua b/init.lua index 18e6b87..9fb827b 100644 --- a/init.lua +++ b/init.lua @@ -48,6 +48,54 @@ vim.opt.rtp:prepend(lazypath) require("lazy").setup("plugins") +--[==========[ +░█▀█░█▀█░▀█▀░█▀▀░█▀▀░█▀▀░█▀▄ +░█▀█░█░█░░█░░▀▀█░█▀▀░█▀▀░█░█ +░▀░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀▀░ +--]==========] +local aniseedpath = vim.fn.stdpath("data") .. "/lazy/aniseed" +if not vim.loop.fs_stat(aniseedpath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "--single-branch", + "https://github.com/Olical/aniseed.git", + aniseedpath + }) +end +vim.opt.rtp:prepend(aniseedpath) +vim.g["aniseed#env"] = true +--require("aniseed").setup() +require("aniseed.env").init() + + +--[[ +local hotpot_path = vim.fn.stdpath("data") .. "/lazy/hotpot.nvim" +if not vim.loop.fs_stat(hotpot_path) then + vim.notify("Bootstrapping hotpot.nvim...", vim.log.levels.INFO) + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "--single-branch", + "https://github.com/rktjmp/hotpot.nvim.git", + hotpot_path, + }) +end +vim.opt.runtimepath:prepend(hotpot_path) +require("hotpot").setup({ + provide_require_fennel = true, + + compiler = { + modules = { + correlate = true + } + }, +}) +require "config" +--]] + --[==========[ ░█▀█░█░█░▀█▀░█▄█░░░░░█▀▀░█▄█░█▀█ ░█░█░▀▄▀░░█░░█░█░▄▄▄░█░░░█░█░█▀▀ diff --git a/lazy-lock.json b/lazy-lock.json index 9bbf287..9044161 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,14 +1,15 @@ { "LuaSnip": { "branch": "master", "commit": "fcdaa4313305fe20d928551134c1ec2266e7af2a" }, "aerial.nvim": { "branch": "master", "commit": "189bf4cce7f029ca8b3684441dd9d8ca5e6925a4" }, - "aniseed": { "branch": "master", "commit": "44d2886a9ec38abac61b4c73c2e57fb752232cfe" }, "barbar.nvim": { "branch": "master", "commit": "b8ca6076f75e49cca1fa0288c080f3d10ec2152c" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "5af1bb7d722ef8a96658f01d6eb219c4cf746b32" }, "cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, + "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "conjure": { "branch": "master", "commit": "1dd96d90f53122225f698e58b50dee9ed760cf2e" }, "gitsigns.nvim": { "branch": "main", "commit": "c18b7ca0b5b50596722f3a1572eb9b8eb520c0f1" }, + "indent-blankline.nvim": { "branch": "master", "commit": "018bd04d80c9a73d399c1061fa0c3b14a7614399" }, "lazy.nvim": { "branch": "main", "commit": "6610b15dfd76f7992423916e2b87f031881d7b25" }, "lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "c55d18f3947562e699d34d89681edbf9f0e250d3" }, diff --git a/lua/plugins/aniseed.lua b/lua/plugins/aniseed.lua index 4f8b478..6ddbed9 100644 --- a/lua/plugins/aniseed.lua +++ b/lua/plugins/aniseed.lua @@ -1,8 +1,12 @@ + return { + --[[ "Olical/aniseed", lazy = false, priority = 100, init = function(_) vim.g["aniseed#env"] = true end + ]] } +