feat(programs/neovim): we getchoo. neovim. wrapper.
This commit is contained in:
parent
0c69af81cc
commit
611371b56f
5 changed files with 66 additions and 34 deletions
|
@ -7,7 +7,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./common.nix
|
./common.nix
|
||||||
|
|
||||||
../programs/neovim
|
|
||||||
../programs/rust.nix
|
../programs/rust.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ in
|
||||||
|
|
||||||
../programs/fish.nix
|
../programs/fish.nix
|
||||||
../programs/git.nix
|
../programs/git.nix
|
||||||
|
../programs/neovim
|
||||||
];
|
];
|
||||||
|
|
||||||
age = {
|
age = {
|
||||||
|
@ -154,11 +155,6 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
neovim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
|
21
flake.lock
generated
21
flake.lock
generated
|
@ -125,6 +125,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"getchvim": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1744833748,
|
||||||
|
"narHash": "sha256-+kB8uBposUKOLL9wNOVySacNERmt0HOasg950YA0p94=",
|
||||||
|
"owner": "getchoo",
|
||||||
|
"repo": "getchvim",
|
||||||
|
"rev": "47f72d2e178a4b0d01ef7b1f9a742a86b4eb5dd8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "getchoo",
|
||||||
|
"repo": "getchvim",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -242,6 +262,7 @@
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
"getchvim": "getchvim",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"mystia": "mystia",
|
"mystia": "mystia",
|
||||||
|
|
|
@ -84,6 +84,11 @@
|
||||||
inputs.systems.follows = "systems";
|
inputs.systems.follows = "systems";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
getchvim = {
|
||||||
|
url = "github:getchoo/getchvim";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -1,17 +1,26 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
hm.programs.neovim = {
|
pkgs,
|
||||||
enable = true;
|
getchvim,
|
||||||
defaultEditor = true;
|
...
|
||||||
extraLuaConfig = builtins.readFile ./init.lua;
|
}:
|
||||||
|
let
|
||||||
|
inherit (pkgs.stdenv.hostPlatform) system;
|
||||||
|
inherit (getchvim.packages.${system}.getchvim) makeNeovimWrapper;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment = {
|
||||||
|
variables.EDITOR = "nvim";
|
||||||
|
systemPackages = [
|
||||||
|
(makeNeovimWrapper {
|
||||||
|
pname = "ukuvim";
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
luaRc = ./init.lua;
|
||||||
lua5_1
|
|
||||||
|
runtimePrograms = with pkgs; [
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
tree-sitter
|
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
vimPluginPackages = with pkgs.vimPlugins; [
|
||||||
barbar-nvim
|
barbar-nvim
|
||||||
catppuccin-nvim
|
catppuccin-nvim
|
||||||
cmp-async-path
|
cmp-async-path
|
||||||
|
@ -30,5 +39,7 @@
|
||||||
nvim-web-devicons # for lualine
|
nvim-web-devicons # for lualine
|
||||||
vim-wakatime
|
vim-wakatime
|
||||||
];
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue