Skip to content

Readf0x/genvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Genvim

The simplest neovim wrapper I could think of. You should be able to use this with pretty much anything as long as you can specify absolute paths for plugins.

Usage

{ pkgs, ... }: {
  # Know that this will add nvim to your `home.packages`, that's how it adds lsps to the path.
  programs.genvim = {
    enable = true;
    plugins = with pkgs.vimPlugins; [
      plenary-nvim
      telescope-nvim
      nvim-treesitter
    ];
    lsps = with pkgs; [
      gopls
      ols
    ];
  }
}

This will produce the following symlinks:

~/
├── .nix-profile/bin/nvim
├── .local/share/nvim/
│   ├── lazy/lazy.nvim -> /nix/store/...
│   ├── nix-plugins/
│   │   ├── plenary.nvim -> /nix/store/...
│   │   ├── telescope.nvim -> /nix/store/...
│   │   ├── nvim-treesitter -> /nix/store/...

In your neovim config:

require("lazy").setup({
  {
    name = "telescope.nvim",
    dir = vim.fn.stdpath("data") .. "/nix-plugins/telescope.nvim",
    dependencies = { "plenary.nvim" },
    cmd = "Telescope",
  },
})

About

sane neovim nix wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages