nixvim
This commit is contained in:
@@ -13,6 +13,7 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
./package-set.nix
|
./package-set.nix
|
||||||
./shell
|
./shell
|
||||||
|
./nixvim.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./verify-system
|
./verify-system
|
||||||
@@ -98,7 +99,6 @@ in
|
|||||||
inputs.nix-search-cli.packages.${pkgs.system}.default
|
inputs.nix-search-cli.packages.${pkgs.system}.default
|
||||||
inputs.nix-inspect.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.versionId = toString (self.shortRev or self.dirtyShortRev);
|
||||||
vacu.versionInfo = {
|
vacu.versionInfo = {
|
||||||
id = self.rev or self.dirtyRev;
|
id = self.rev or self.dirtyRev;
|
||||||
|
8
common/nixvim.nix
Normal file
8
common/nixvim.nix
Normal 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 "$@"'')
|
||||||
|
];
|
||||||
|
}
|
@@ -45,8 +45,5 @@ in
|
|||||||
mkdir "''${args[@]}" && cd "''${args[-1]}"
|
mkdir "''${args[@]}" && cd "''${args[-1]}"
|
||||||
'')
|
'')
|
||||||
(writeShellFunction "td" ''pushd $(mktemp "$@")'')
|
(writeShellFunction "td" ''pushd $(mktemp "$@")'')
|
||||||
(writeShellFunction "nvim-plain" ''${pkgs.neovim}/bin/nvim "$@"'')
|
|
||||||
(writeShellFunction "nvim-nixvim" ''${config.vacu.nixvimPkg}/bin/nvim "$@"'')
|
|
||||||
(writeShellFunction "nvim" ''nvim-plain "$@"'')
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -2,6 +2,12 @@
|
|||||||
let
|
let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
opts = {
|
||||||
|
smartindent = true;
|
||||||
|
expandtab = true;
|
||||||
|
shiftwidth = 2;
|
||||||
|
softtabstop = -1;
|
||||||
|
};
|
||||||
plugins.comment.enable = true;
|
plugins.comment.enable = true;
|
||||||
plugins.surround.enable = true;
|
plugins.surround.enable = true;
|
||||||
plugins.lsp = {
|
plugins.lsp = {
|
||||||
|
Reference in New Issue
Block a user