Compare commits
2 commits
e9832d91b2
...
892f03c6e5
| Author | SHA1 | Date | |
|---|---|---|---|
| 892f03c6e5 | |||
| 982f680940 |
2 changed files with 41 additions and 12 deletions
|
|
@ -18,7 +18,6 @@ in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# set as default shell
|
# set as default shell
|
||||||
users.users.moritz.shell = pkgs.fish;
|
users.users.moritz.shell = pkgs.fish;
|
||||||
environment.systemPackages = with pkgs.fishPlugins; [fzf-fish pisces];
|
|
||||||
# needed for nix completions
|
# needed for nix completions
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
|
@ -26,14 +25,27 @@ in {
|
||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = let
|
||||||
|
mkDef = pkg: {
|
||||||
|
name = pkg.pname;
|
||||||
|
src = pkg.src;
|
||||||
|
};
|
||||||
|
plugins = with pkgs.fishPlugins; [
|
||||||
|
sponge
|
||||||
|
pisces
|
||||||
|
colored-man-pages
|
||||||
|
done
|
||||||
|
];
|
||||||
|
in
|
||||||
|
map mkDef plugins
|
||||||
|
++ [
|
||||||
{
|
{
|
||||||
name = "fish-completion-sync";
|
name = "fish-completion-sync";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "pfgray";
|
owner = "iynaix";
|
||||||
repo = "fish-completion-sync";
|
repo = "fish-completion-sync";
|
||||||
rev = "ba70b6457228af520751eab48430b1b995e3e0e2";
|
rev = "4f058ad2986727a5f510e757bc82cbbfca4596f0";
|
||||||
sha256 = "sha256-JdOLsZZ1VFRv7zA2i/QEZ1eovOym/Wccn0SJyhiP9hI=";
|
sha256 = "sha256-kHpdCQdYcpvi9EFM/uZXv93mZqlk1zCi2DRhWaDyK5g=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home-manager.users.moritz.programs.nixvim = {
|
||||||
|
extraPlugins = [pkgs.vimPlugins.tiny-inline-diagnostic-nvim];
|
||||||
|
extraConfigLuaPost = ''
|
||||||
|
require('tiny-inline-diagnostic').setup({
|
||||||
|
preset = "powerline",
|
||||||
|
options = {
|
||||||
|
throttle = 0,
|
||||||
|
multilines = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
vim.diagnostic.config({ virtual_text = false })
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue