NotAShelf / nvf

A highly modular, extensible and distro-agnostic Neovim configuration framework for Nix/NixOS.
https://notashelf.github.io/nvf/
MIT License
155 stars 24 forks source link

fix buildPlug patches, update mnw #343

Closed Gerg-L closed 1 month ago

Gerg-L commented 1 month ago

@FrothyMarrow can you test if flutter-tools works with this setup your change of copying $src breaks patches from doing anything i was setting version incorrectly though i switched to stdenvNoCC.mkDerivation because it seems nicer in this case

Gerg-L commented 1 month ago

also updated mnw because i can

FrothyMarrow commented 1 month ago

@Gerg-L Oh yeah I totally forgot about the patch itself. Also, I don't use flutter-tools but I think @Vagahbond can test it out.

Vagahbond commented 1 month ago

I do not do Flutter sorry

NotAShelf commented 1 month ago

CC @FlafyDev for being a cutie and the one to add the patch

NotAShelf commented 1 month ago

Seems to build fine, though I can't verify if the patches have applied. I'll need to test with a dummy flutter project later

FlafyDev commented 1 month ago

i can test can i get nvf with flutter support through a cli command?

NotAShelf commented 1 month ago

i can test can i get nvf with flutter support through a cli command?

Unfortunately, no. But you can initialize a quick configuration using the extended library and a very basic flake:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    nvf.url = "github:notashelf/nvf";
  };

  outputs = inputs: let
    system = "x86_64-linux";
    pkgs = inputs.nixpkgs.legacyPackages.${system};

    customNeovim = inputs.nvf.lib.neovimConfiguration {
      inherit pkgs;

      modules = [
        {
          config.vim = {
            languages.dart = {
              enable = true;
              dap.enable = true;
            };
          };
        }
      ];
    };
  in {
    packages.${system}.neovim = customNeovim.neovim;
  };
}
FlafyDev commented 1 month ago

doesn't seem to work image

NotAShelf commented 1 month ago

My bad I missed a few lines. Please try this @FlafyDev

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    nvf.url = "github:gerg-l/nvf";
  };

  outputs = inputs: let
    system = "x86_64-linux";
    pkgs = inputs.nixpkgs.legacyPackages.${system};

    customNeovim = inputs.nvf.lib.neovimConfiguration {
      inherit pkgs;

      modules = [
        {
          config.vim = {
            startPlugins = [pkgs.vimPlugins.plenary-nvim];
            languages.dart = {
              enable = true;
              lsp.enable = false;
              treesitter.enable = true;
              flutter-tools = {
                enable = true;
                color = {
                  enable = true;
                  virtualText.enable = true;
                };
              };
            };
          };
        }
      ];
    };
  in {
    packages.${system}.neovim = customNeovim.neovim;
  };
}
FlafyDev commented 1 month ago

works 👍 image