Giter VIP home page Giter VIP logo

Comments (8)

mjlbach avatar mjlbach commented on June 18, 2024 1

This is a question best suited for discourse or the nix manual, pkgs.neovim-nightly is a drop-in replacement for wherever pkgs.neovim is called, there is nothing unique about using it.

from neovim-nightly-overlay.

a-h avatar a-h commented on June 18, 2024 1

Awesome, thanks so much @mjlbach. Here's the commit that's got me running Neovim nightly! a-h/dotfiles@dd56c35

from neovim-nightly-overlay.

a-h avatar a-h commented on June 18, 2024

Thanks, it doesn't seem like a drop-in replacement to me...

When I change from:

      (
	 pkgs.neovim.override {
	    vimAlias = true;
	    configure = {
	      packages.myPlugins = with pkgs.vimPlugins; {
		start = [
		  vim-go
		  vim-lastplace
		  vim-nix
		  coc-prettier
		  easygrep #dkprice/vim-easygrep
		  #nvim-lspconfig #https://neovim.io/doc/user/lsp.html#lsp-extension-example
		];
		opt = [];
	      };
	      customRC = builtins.readFile ./../dotfiles/.vimrc;
	  };
	}
      )

To:

      (
	 pkgs.neovim-nightly.override {
	    vimAlias = true;
	    configure = {
	      packages.myPlugins = with pkgs.vimPlugins; {
		start = [
		  vim-go
		  vim-lastplace
		  vim-nix
		  coc-prettier
		  easygrep #dkprice/vim-easygrep
		  #nvim-lspconfig #https://neovim.io/doc/user/lsp.html#lsp-extension-example
		];
		opt = [];
	      };
	      customRC = builtins.readFile ./../dotfiles/.vimrc;
	  };
	}
      )

I get an error:

error: anonymous function at /nix/store/r85slpvs1z7gykc968bbsqy3dmcc1a5h-source/pkgs/applications/editors/neovim/default.nix:1:1 called with unexpected argument 'vimAlias', at /nix/store/r85slpvs1z7gykc968bbsqy3dmcc1a5h-source/lib/customisation.nix:79:63

I'll ask on the Discourse though!

from neovim-nightly-overlay.

mjlbach avatar mjlbach commented on June 18, 2024

Neovim nightly is an override for neovim-unwrapped, not neovim, so you need to write the wrapper if you want to use the other helper functions.

from neovim-nightly-overlay.

teto avatar teto commented on June 18, 2024

@a-h I encourage you to use wrapNeovim or the home-manager plugin which exposes typed options to configure neovim.

from neovim-nightly-overlay.

mjlbach avatar mjlbach commented on June 18, 2024

@a-h The overlay now explicitly overrides neovim-unwrapped, so your original post should "just work"

from neovim-nightly-overlay.

573 avatar 573 commented on June 18, 2024

Pls reopen, does not work anymore, see 573/nix-config-1@a91916a, same error as OP.

EDIT: Using neovim.override in combination with this repository's overlay does indeed work.
Deleted my followup comment which posed exactly this as a question.

from neovim-nightly-overlay.

573 avatar 573 commented on June 18, 2024

Awesome, thanks so much @mjlbach. Here's the commit that's got me running Neovim nightly! a-h/dotfiles@dd56c35

you're using neovim.override not neovim-nightly.override there still ?
EDIT: See answer directly above that comment.

from neovim-nightly-overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.