This commit is contained in:
Shelvacu
2024-09-13 20:18:24 -07:00
parent cfb2b44b77
commit 8b062011ad
4 changed files with 15 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ in
imports = [
./package-set.nix
./shell
./nixvim.nix
./ssh.nix
./nix.nix
./verify-system
@@ -98,7 +99,6 @@ in
inputs.nix-search-cli.packages.${pkgs.system}.default
inputs.nix-inspect.packages.${pkgs.system}.default
];
vacu.nixvimPkg = self.packages.${pkgs.system}.nixvim;
vacu.versionId = toString (self.shortRev or self.dirtyShortRev);
vacu.versionInfo = {
id = self.rev or self.dirtyRev;

8
common/nixvim.nix Normal file
View File

@@ -0,0 +1,8 @@
{ pkgs, ... }: {
vacu.nixvimPkg = self.packages.${pkgs.system}.nixvim;
vacu.packages = [
(writeShellFunction "nvim-plain" ''${pkgs.neovim}/bin/nvim "$@"'')
(writeShellFunction "nvim-nixvim" ''${config.vacu.nixvimPkg}/bin/nvim "$@"'')
(writeShellFunction "nvim" ''nvim-nixvim "$@"'')
];
}

View File

@@ -45,8 +45,5 @@ in
mkdir "''${args[@]}" && cd "''${args[-1]}"
'')
(writeShellFunction "td" ''pushd $(mktemp "$@")'')
(writeShellFunction "nvim-plain" ''${pkgs.neovim}/bin/nvim "$@"'')
(writeShellFunction "nvim-nixvim" ''${config.vacu.nixvimPkg}/bin/nvim "$@"'')
(writeShellFunction "nvim" ''nvim-plain "$@"'')
];
}

View File

@@ -2,6 +2,12 @@
let
in
{
opts = {
smartindent = true;
expandtab = true;
shiftwidth = 2;
softtabstop = -1;
};
plugins.comment.enable = true;
plugins.surround.enable = true;
plugins.lsp = {