working maybe?
This commit is contained in:
parent
6d7ffc5cc4
commit
6abc7fe210
70 changed files with 406 additions and 1528 deletions
|
@ -1,3 +1,28 @@
|
|||
_: {
|
||||
imports = [./nixvim.nix];
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) filter map toString elem;
|
||||
inherit (lib.filesystem) listFilesRecursive;
|
||||
inherit (lib.strings) hasSuffix;
|
||||
inherit (lib.lists) concatLists;
|
||||
|
||||
mkNixvimModule = {
|
||||
path,
|
||||
ignoredPaths ? [
|
||||
],
|
||||
}:
|
||||
filter (hasSuffix ".nix") (
|
||||
map toString (
|
||||
filter (path: path != ./default.nix && !elem path ignoredPaths) (listFilesRecursive path)
|
||||
)
|
||||
);
|
||||
in {
|
||||
imports = concatLists [
|
||||
[inputs.nixvim.nixosModules.nixvim]
|
||||
|
||||
(mkNixvimModule {path = ./.;})
|
||||
];
|
||||
}
|
||||
|
|
0
modules/editors/nvf/default.nix
Normal file
0
modules/editors/nvf/default.nix
Normal file
46
modules/editors/nvf/nvf.nix
Normal file
46
modules/editors/nvf/nvf.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
|
||||
defaultEditor = true;
|
||||
enableManpages = true;
|
||||
|
||||
settings = {
|
||||
vim = {
|
||||
# use neovim-unwrapped from nixpkgs
|
||||
package = pkgs.neovim-unwrapped;
|
||||
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
withNodeJs = false;
|
||||
withPython3 = false;
|
||||
withRuby = false;
|
||||
|
||||
# Prevent swapfile and backupfile from being created
|
||||
preventJunkFiles = true;
|
||||
|
||||
# Make use of the clipboard for default yank and paste operations. Don’t use * and +
|
||||
useSystemClipboard = true;
|
||||
spellcheck = {
|
||||
enable = true;
|
||||
languages = ["en" "de"];
|
||||
};
|
||||
|
||||
# Whether to enable the experimental Lua module loader to speed up the start up process
|
||||
enableLuaLoader = true;
|
||||
enableEditorconfig = true;
|
||||
|
||||
debugMode = {
|
||||
enable = false;
|
||||
logFile = "/tmp/nvim.log";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue