wip: modularize home-manager
This commit is contained in:
parent
8b735dd5da
commit
ac9918c759
14 changed files with 200 additions and 119 deletions
43
modules/home-manager/vim.nix
Normal file
43
modules/home-manager/vim.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.custom-hm.neovim;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
enable = mkEnableOption "neovim configurations";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
catppuccin-nvim
|
||||
];
|
||||
extraConfig = ''
|
||||
set nocompatible
|
||||
|
||||
syntax on
|
||||
set number
|
||||
set relativenumber
|
||||
set shortmess+=I
|
||||
set laststatus=2
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set list
|
||||
set listchars=tab:→·
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
|
||||
set mouse+=a
|
||||
|
||||
colorscheme catppuccin-macchiato
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue