2022-07-15 13:11:54 +02:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.my.programs.vim;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.programs.vim = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = true;
|
|
|
|
type = types.bool;
|
|
|
|
example = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.moritz.programs.neovim = {
|
|
|
|
enable = true;
|
2023-02-17 12:31:31 +01:00
|
|
|
package = pkgs.neovim-nightly;
|
2022-07-15 13:11:54 +02:00
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
|
|
|
withNodeJs = true;
|
|
|
|
withPython3 = true;
|
2023-02-16 18:03:55 +01:00
|
|
|
extraLuaConfig = builtins.readFile ./init.lua;
|
2023-02-17 12:38:44 +01:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
sumneko-lua-language-server
|
|
|
|
nil
|
|
|
|
];
|
2023-02-16 18:03:55 +01:00
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
catppuccin-nvim
|
2023-02-17 12:38:44 +01:00
|
|
|
cmp-nvim-lsp
|
2023-02-16 18:03:55 +01:00
|
|
|
dashboard-nvim
|
|
|
|
neogit
|
|
|
|
noice-nvim
|
|
|
|
nui-nvim # for noice-nvim
|
2023-02-17 12:38:44 +01:00
|
|
|
nvim-cmp
|
|
|
|
nvim-lspconfig
|
2023-02-16 18:03:55 +01:00
|
|
|
nvim-treesitter.withAllGrammars
|
|
|
|
nvim-web-devicons # for dashboard-nvim
|
|
|
|
plenary-nvim # for telescope, neogit
|
|
|
|
telescope-nvim
|
|
|
|
which-key-nvim
|
2023-02-17 12:38:44 +01:00
|
|
|
cmp_luasnip
|
|
|
|
luasnip
|
|
|
|
lsp_lines-nvim
|
2023-02-16 18:03:55 +01:00
|
|
|
];
|
2022-07-15 13:11:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|