1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: use nixvim for manpager definition

This commit is contained in:
oddlama 2023-11-05 19:31:15 +01:00
parent cc04e10405
commit c037780743
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
8 changed files with 78 additions and 141 deletions

View file

@ -3,37 +3,8 @@
pkgs,
...
}: {
#programs.neovim-custom = {
# config = {
# withPython3 = false;
# withRuby = false;
# withNodeJs = false;
# #extraPython3Packages = p: [];
# plugins = with pkgs.vimPlugins; [
# {
# plugin = neo-tree-nvim;
# config =
# /*
# lua
# */
# ''
# require("neo-tree").setup {}
# '';
# }
# ];
# };
# init = builtins.readFile ./aaa/init.lua;
#};
home.shellAliases.nixvim = lib.getExe (pkgs.nixvim.makeNixvim {
package = pkgs.neovim-unwrapped.overrideAttrs (_final: prev: {
nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [pkgs.makeWrapper];
postInstall =
(prev.postInstall or "")
+ ''
wrapProgram $out/bin/nvim --add-flags "--clean"
'';
});
package = pkgs.neovim-clean;
colorschemes = {
catppuccin = {
@ -158,6 +129,9 @@
};
in [(pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped nvimConfig)];
home.sessionVariables.EDITOR = "nvim";
home.shellAliases.vimdiff = "nvim -d";
xdg.configFile = {
"nvim/ftplugin".source = ./ftplugin;
"nvim/init.lua".source = ./init.lua;