Initial migration of vim config to Nix

This commit is contained in:
Spotlight 2023-05-04 16:51:26 -05:00
parent b2c6678614
commit 2183f6f178
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

View file

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
@ -16,11 +14,11 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
dogdns dogdns
go
htop htop
mtr mtr
ncdu ncdu
tmux tmux
vim
]; ];
# Very opinionated :) # Very opinionated :)
@ -59,6 +57,34 @@
# The .p10k.zsh config is beneath. # The .p10k.zsh config is beneath.
}; };
programs.vim = {
enable = true;
plugins = with pkgs; [
pkgs.vimPlugins.vim-airline
pkgs.vimPlugins.vim-airline-themes
pkgs.vimPlugins.vim-go
];
settings = {
number = true;
# Two-spaced tabs
tabstop = 2;
expandtab = false;
};
extraConfig = ''
set nocompatible
filetype off
syntax on
filetype plugin indent on
set backspace=indent,eol,start
" custom filetypes
autocmd BufNewFile,BufRead *.plist set syntax=xml
" vim-airline
let g:airline_powerline_fonts = 1
'';
};
# We must source the p10k config. # We must source the p10k config.
# TODO: We should manage the config via programs.zsh.plugins. # TODO: We should manage the config via programs.zsh.plugins.