gytis-ivaskevicius / nix2vim Goto Github PK
View Code? Open in Web Editor NEW[WIP] Nix to Lua parser meant to be used for configuring neovim
License: MIT License
[WIP] Nix to Lua parser meant to be used for configuring neovim
License: MIT License
Thanks a lot for this flake, it really helped setting up my nvim in nix!
as part of the neovimBuilder
call I am trying to add a python package, namely ueberzug
. I try to add it by passing a reference to it in the neovimBuilder
option extraPython3Packages
. I am unable to either find the
...
extraPython3Packages = (ps: with ps; [ ueberzug ]);
...
However this fails to propagate the dependency. Am I doing something wrong or is the functionality of the option extraPython3Packages
not working correctly?
Thanks a lot for your time!
I didn't try yet, but I'd like to look into it some time. I will follow "watch" the releases. Do you intend to make GitHub releases? Or is there any other way to follow them?
So that I could subscribe to watching releases on GitHub, please?
Hello, Gytis, first, thanks for create this plugins. Now I'm moving my neovim configurations from lua to nix, in telescope and alpha.nvim configuration, my configuration have some statement like:
-- alpha.nvim
require('alpha').setup(require('alpha.themes.startify').config)
-- telescope.nvim
require('telescope').load_extension('fzy_native')
I reference the docs and code for lib/api.options.nix
writing the following code:
{
...
# alpha.nvim
alpha.setup = use.'alpha.themes.startify'.config;
# telescope.nvim, syntax like calling a function
use.'telescope'.load_extensions 'fzy_native';
...
}
For the current code design, that's illegal, if want make it work, must use the lua = ''''
to wrap those statement. idk have a better throughts for using nix to configuring neovim, maybe need add some new features or functions for lua to nix api?
P.S.: Just throughts :)
It would be helpful if this project had a clear license as it determines both who can contribute and how the code can be used.
Could the contributors to date please decide on a license and put one in the repository? @gytis-ivaskevicius @DieracDelta @Kirens
I would like to use nix to manage my packer plugins and their configurations, because those are the elements of my config that don't involve functions or any idiosyncratic lua/vim stuff that wouldn't be possible (as far as I'm aware) with this flake. How can I go about partially using nix2vim, with raw lua alongside it?
Hey @gytis-ivaskevicius ! You linked me to this repo on discord as an example of how to to tree-sitter grammars. I've been thinking of doing something like this for a while.
I've decided to convert my existing config to this, so far so good, only my telescope config requires ripgrep
and fd
. I can install them elsewhere for now but it would be really nice if it was possible to declare them within the module so that if I remove telescope, they get dropped too.
Maybe I'm missing it, but something like this would be nice I think:
{pkgs, dsl, ...}: with dsl;
{
plugins = with pkgs:vimPlugins; [ telescope-nvim ];
systemPackages = with pkgs; [ ripgrep fd ];
setup.treesitter = {
# ...
};
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.