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-17 22:09:13 +01:00
|
|
|
cmp_luasnip
|
2023-02-17 22:16:23 +01:00
|
|
|
comment-nvim
|
2023-02-16 18:03:55 +01:00
|
|
|
dashboard-nvim
|
2023-02-17 22:09:13 +01:00
|
|
|
lsp_lines-nvim
|
2023-02-17 22:11:37 +01:00
|
|
|
lualine-lsp-progress
|
|
|
|
lualine-nvim
|
2023-02-17 22:09:13 +01:00
|
|
|
luasnip
|
2023-02-16 18:03:55 +01:00
|
|
|
neogit
|
|
|
|
noice-nvim
|
|
|
|
nui-nvim # for noice-nvim
|
2023-02-17 12:38:44 +01:00
|
|
|
nvim-cmp
|
|
|
|
nvim-lspconfig
|
2023-02-17 22:18:34 +01:00
|
|
|
nvim-surround
|
2023-02-16 18:03:55 +01:00
|
|
|
nvim-treesitter.withAllGrammars
|
2023-02-17 22:16:23 +01:00
|
|
|
nvim-ts-context-commentstring
|
2023-02-16 18:03:55 +01:00
|
|
|
nvim-web-devicons # for dashboard-nvim
|
|
|
|
plenary-nvim # for telescope, neogit
|
|
|
|
telescope-nvim
|
|
|
|
which-key-nvim
|
|
|
|
];
|
2022-07-15 13:11:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|