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" concatStringsSep "\n"
(concatMap (getLua type) plugins); (concatMap (getLua type) plugins);
neoflake.plugin = vimUtils.buildVimPlugin { sloth-flake.plugin = vimUtils.buildVimPlugin {
inherit version; inherit version;
pname = "neoflake"; pname = "sloth-flake";
src = ./lua/neoflake; src = ./lua/sloth-flake;
buildPhase = '' buildPhase = ''
dir=lua/neoflake dir=lua/sloth-flake
mkdir -p $dir mkdir -p $dir
mv init.lua $dir mv init.lua $dir
@ -111,7 +111,7 @@
pname = "runtime"; pname = "runtime";
})); }));
plugins = normalizePlugins (dependencies ++ [runtimePlugin neoflake]); plugins = normalizePlugins (dependencies ++ [runtimePlugin sloth-flake]);
extractPlugin = map (p: p.plugin); extractPlugin = map (p: p.plugin);
@ -154,7 +154,7 @@
mkNeovimModule = { mkNeovimModule = {
pluginsDir ? null, pluginsDir ? null,
attrName ? "neoflake", attrName ? "sloth-flake",
self, self,
}: { }: {
config, config,
@ -433,11 +433,11 @@
}) {} }) {}
normalizedVerbatim; normalizedVerbatim;
neoflakeFiles = let slothFlakeFiles = let
prefix = "nvim/lua/neoflake"; prefix = "nvim/lua/sloth-flake";
in { in {
${prefix} = { ${prefix} = {
source = ./lua/neoflake; source = ./lua/sloth-flake;
recursive = true; recursive = true;
}; };
"${prefix}/initialize.lua".text = '' "${prefix}/initialize.lua".text = ''
@ -470,7 +470,7 @@
xdg.configFile = xdg.configFile =
verbatimFiles verbatimFiles
// neoflakeFiles // slothFlakeFiles
// defaultConfig; // defaultConfig;
}; };
}; };

View File

@ -1,11 +1,11 @@
-- Generated by neoflake -- Generated by sloth-flake
local neoflake = require 'neoflake' local sloth_flake = require 'sloth-flake'
-- Initialize plugins -- Initialize plugins
neoflake.init() sloth_flake.init()
-- Should load plugins -- Should load plugins
neoflake.load() sloth_flake.load()
-- Load plugins configuration -- 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