Initial migration of vim config to Nix
This commit is contained in:
parent
b2c6678614
commit
2183f6f178
1 changed files with 29 additions and 3 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue