sync
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
../packages/nvim/default.nix
|
../packages/nvim/default.nix
|
||||||
../packages/zsh/default.nix
|
../packages/zsh/default.nix
|
||||||
|
../packages/zoxide/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
@@ -12,7 +13,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.lazygit
|
|
||||||
];
|
];
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ ... }: {
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
pkgs.lazygit
|
||||||
|
pkgs.ripgrep
|
||||||
|
];
|
||||||
|
|
||||||
home.file.".config/nvim" = {
|
home.file.".config/nvim" = {
|
||||||
# BUG requires --impure
|
# BUG requires --impure
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ ... }: {
|
||||||
|
home.packages = [
|
||||||
|
zoxide
|
||||||
|
];
|
||||||
|
programs.zoxide.enable = true;
|
||||||
|
programs.zoxide.enableZshIntegration = true;
|
||||||
|
programs.zoxide.options = [];
|
||||||
|
}
|
||||||
@@ -1,8 +1,18 @@
|
|||||||
{ ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "zsh-autocomplete"; # completes history, commands, etc.
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "marlonrichert";
|
||||||
|
repo = "zsh-autocomplete";
|
||||||
|
rev = "762afacbf227ecd173e899d10a28a478b4c84a3f";
|
||||||
|
sha256 = "1357hygrjwj5vd4cjdvxzrx967f1d2dbqm2rskbz5z1q6jri1hm3";
|
||||||
|
}; # e.g., nix-prefetch-url --unpack https://github.com/marlonrichert/zsh-autocomplete/archive/762afacbf227ecd173e899d10a28a478b4c84a3f.tar.gz
|
||||||
|
}
|
||||||
|
];
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
# autosuggestions.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ll = "ls -l";
|
ll = "ls -l";
|
||||||
@@ -11,8 +21,23 @@
|
|||||||
};
|
};
|
||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
|
plugins = [ "z" ];
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "robbyrussell";
|
theme = "robbyrussell";
|
||||||
|
extraConfig = ''
|
||||||
|
# Required for autocomplete with box: https://unix.stackexchange.com/a/778868
|
||||||
|
zstyle ':completion:*' completer _expand _complete _ignored _approximate _expand_alias
|
||||||
|
zstyle ':autocomplete:*' default-context curcontext
|
||||||
|
zstyle ':autocomplete:*' min-input 0
|
||||||
|
|
||||||
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
|
||||||
|
setopt autocd # cd without writing 'cd'
|
||||||
|
setopt globdots # show dotfiles in autocomplete list
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user