devos/users/modules/neovim/default.nix

47 lines
792 B
Nix
Raw Normal View History

{ lib, pkgs, config, ... }@inputs:
with lib;
let
cfg = config.mae.nvim;
in
{
imports = [
2022-08-17 22:02:19 +02:00
./nvim-lsp.nix
2022-08-17 01:26:57 +02:00
./js.nix
./rust.nix
2022-08-17 22:02:19 +02:00
./nix.nix
];
2022-08-17 22:02:19 +02:00
options.mae.nvim = {
enable = mkEnableOption "enable neovim";
};
config = {
programs.neovim = mkIf cfg.enable {
enable = true;
vimdiffAlias = true;
plugins = with pkgs.vimPlugins; [
neoformat
undotree
fzf-vim
{
plugin = iceberg-vim;
config = "colorscheme iceberg";
}
vim-sleuth
];
extraConfig = ''
set background=dark
set termguicolors
set ic
set number
set autoindent
set shortmess+=c
2022-08-17 22:02:19 +02:00
set completeopt=menuone,noinsert,noselect
'';
};
};
}