From ce89ae854a178f80eb147160f4b3c8bdd8045e59 Mon Sep 17 00:00:00 2001 From: LeMarsu Date: Sun, 26 May 2024 19:05:49 +0200 Subject: [PATCH] feat: rename neofalke to sloth-flake.nvim --- lib.nix | 20 ++++++++++---------- lua/default_init.lua | 10 +++++----- lua/neoflake/init.lua | 10 ---------- lua/sloth-flake/init.lua | 10 ++++++++++ 4 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 lua/neoflake/init.lua create mode 100644 lua/sloth-flake/init.lua diff --git a/lib.nix b/lib.nix index f01a062..4363a8d 100644 --- a/lib.nix +++ b/lib.nix @@ -77,12 +77,12 @@ concatStringsSep "\n" (concatMap (getLua type) plugins); - neoflake.plugin = vimUtils.buildVimPlugin { + sloth-flake.plugin = vimUtils.buildVimPlugin { inherit version; - pname = "neoflake"; - src = ./lua/neoflake; + pname = "sloth-flake"; + src = ./lua/sloth-flake; buildPhase = '' - dir=lua/neoflake + dir=lua/sloth-flake mkdir -p $dir mv init.lua $dir @@ -111,7 +111,7 @@ pname = "runtime"; })); - plugins = normalizePlugins (dependencies ++ [runtimePlugin neoflake]); + plugins = normalizePlugins (dependencies ++ [runtimePlugin sloth-flake]); extractPlugin = map (p: p.plugin); @@ -154,7 +154,7 @@ mkNeovimModule = { pluginsDir ? null, - attrName ? "neoflake", + attrName ? "sloth-flake", self, }: { config, @@ -433,11 +433,11 @@ }) {} normalizedVerbatim; - neoflakeFiles = let - prefix = "nvim/lua/neoflake"; + slothFlakeFiles = let + prefix = "nvim/lua/sloth-flake"; in { ${prefix} = { - source = ./lua/neoflake; + source = ./lua/sloth-flake; recursive = true; }; "${prefix}/initialize.lua".text = '' @@ -470,7 +470,7 @@ xdg.configFile = verbatimFiles - // neoflakeFiles + // slothFlakeFiles // defaultConfig; }; }; diff --git a/lua/default_init.lua b/lua/default_init.lua index 589e9f3..56fddf6 100644 --- a/lua/default_init.lua +++ b/lua/default_init.lua @@ -1,11 +1,11 @@ --- Generated by neoflake -local neoflake = require 'neoflake' +-- Generated by sloth-flake +local sloth_flake = require 'sloth-flake' -- Initialize plugins -neoflake.init() +sloth_flake.init() -- Should load plugins -neoflake.load() +sloth_flake.load() -- Load plugins configuration -neoflake.config() +sloth_flake.config() diff --git a/lua/neoflake/init.lua b/lua/neoflake/init.lua deleted file mode 100644 index 4c10bbd..0000000 --- a/lua/neoflake/init.lua +++ /dev/null @@ -1,10 +0,0 @@ -local M = { - init = require('neoflake.initialize'), - config = require('neoflake.config'), -} - -function M.load() - -- Not implemented yet -end - -return M diff --git a/lua/sloth-flake/init.lua b/lua/sloth-flake/init.lua new file mode 100644 index 0000000..d4631ca --- /dev/null +++ b/lua/sloth-flake/init.lua @@ -0,0 +1,10 @@ +local M = { + init = require('sloth-flake.initialize'), + config = require('sloth-flake.config'), +} + +function M.load() + -- Not implemented yet +end + +return M