feat: rename neofalke to sloth-flake.nvim

main
LeMarsu 2024-05-26 19:05:49 +02:00
parent a97982a228
commit ce89ae854a
4 changed files with 25 additions and 25 deletions

20
lib.nix
View File

@ -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;
};
};

View File

@ -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()

View File

@ -1,10 +0,0 @@
local M = {
init = require('neoflake.initialize'),
config = require('neoflake.config'),
}
function M.load()
-- Not implemented yet
end
return M

10
lua/sloth-flake/init.lua Normal file
View File

@ -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