2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
2024-02-05 11:46:52 +01:00
|
|
|
with lib;
|
|
|
|
let
|
2022-03-01 22:19:03 +01:00
|
|
|
cfg = config.eboskma.programs.neovim;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2024-02-05 11:46:52 +01:00
|
|
|
options.eboskma.programs.neovim = {
|
|
|
|
enable = mkEnableOption "neovim";
|
|
|
|
};
|
2021-12-18 16:23:14 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2022-01-13 09:03:22 +01:00
|
|
|
# unfortunately this does properly support a Lua based config
|
|
|
|
# programs.neovim = {
|
|
|
|
# enable = true;
|
2021-12-18 16:23:14 +01:00
|
|
|
|
2022-01-13 09:03:22 +01:00
|
|
|
# # Enable some aliases
|
|
|
|
# viAlias = true;
|
|
|
|
# vimAlias = true;
|
|
|
|
# vimdiffAlias = true;
|
2021-12-18 16:23:14 +01:00
|
|
|
|
2022-01-13 09:03:22 +01:00
|
|
|
# withNodeJs = true;
|
|
|
|
# withPython3 = true;
|
|
|
|
# withRuby = true;
|
|
|
|
|
|
|
|
# extraConfig = ''
|
|
|
|
# luafile ./config.lua
|
|
|
|
# '';
|
|
|
|
# };
|
|
|
|
|
2024-02-05 11:46:52 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
neovim
|
|
|
|
tree-sitter
|
|
|
|
];
|
2022-01-13 09:03:22 +01:00
|
|
|
|
|
|
|
xdg.configFile.nvim = {
|
|
|
|
source = ./config;
|
|
|
|
recursive = true;
|
2021-12-18 16:23:14 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|