Minor worf updates

This commit is contained in:
Felix Albrigtsen 2023-08-08 08:51:20 +02:00
parent 3ff9efd865
commit 00d5c51603
4 changed files with 27 additions and 25 deletions

View File

@ -20,6 +20,7 @@
gnugrep
ripgrep
wget
sshfs
];
variables = {
@ -80,7 +81,7 @@
autohide = true;
autohide-delay = 0.0;
autohide-time-modifier = 1.0;
tilesize = 80;
tilesize = 45;
static-only = false;
showhidden = false;
show-recents = false;

View File

@ -12,13 +12,15 @@
home.packages = with pkgs; [
bottom
discord
cocoapods
exa
iterm2
ncdu
neofetch
nix-index
nodejs
slack
spotify
tldr
vscode
];
@ -29,6 +31,7 @@
pull.rebase = "true";
color.ui = "auto";
init.defaultBranch = "main";
lfs.enable = true;
user = {
name = "Felix Albrigtsen";

View File

@ -1,15 +1,5 @@
{ pkgs, lib, inputs, config, ...}:
let
# fromGitHub = rev: ref: repo: pkgs.vimUtils.buildVimPluginFrom2Nix {
# pname = "${lib.strings.sanitizeDerivationName repo}";
# version = ref;
# src = builtins.fetchGit {
# url = "https://github.com/${repo}.git";
# ref = ref;
# rev = rev;
# };
# };
in {
{
programs.neovim = {
enable = true;
defaultEditor = true;
@ -19,7 +9,7 @@ in {
plugins = with pkgs.vimPlugins; [
lightline-vim
vim-lightline-coc
vim-commentary
vim-fugitive
@ -30,16 +20,23 @@ in {
nvim-lspconfig
copilot-vim
nvim-treesitter
coc-css
coc-json
coc-nvim
coc-pyright
coc-go
vim-nix
];
extraConfig = ''
let mapleader = ','
set number
set shiftwidth=2
set tabstop=2
set expandtab
" Integrate status with lightline
let g:lightline = {
\ 'active': {
@ -106,4 +103,4 @@ in {
map <Leader><Space> :noh<CR>
'';
};
}
}

View File

@ -1,9 +1,4 @@
{ pkgs
, lib
, inputs
, config
, ...
}: {
{ pkgs, lib, inputs, config, ... }: {
programs = {
zsh = {
enable = true;
@ -39,10 +34,16 @@
];
};
initExtra = ''
# Autocomplete ../
zstyle ':completion:*' special-dirs true
'';
shellAliases = {
l = "exa -l";
tree = "exa --tree --icons";
rebuild = "darwin-rebuild switch --flake /Users/felixalb/nix";
shell = "nix-shell --run zsh";
gst = "git status -sb";
gcm = "git commit -m";
gps = "git push";
@ -50,4 +51,4 @@
};
};
};
}
}