Skip to content

[BUG] extraFiles not added to runtimepath after migrating to standalone #2799

Open
@mkienitz

Description

@mkienitz
Field Description
Plugin nixvim
Nixpkgs unstable
  • I have read the FAQ and my bug is not listed there.

Description

After migrating my home-manager based nixvim configuration to a seperate flake, my filetype configuration is broken. As far as I can tell, the filetype setting files are not added to the runtimepath, despite the option description saying so.

For the example down below, I can see the created file at /nix/store/<hash>-vim-pack-dir/pack/myNeovimPackages/start/nvim-config/after/ftplugin/haskell.lua

I am using and building nixvim on Darwin.

Minimal, Reproducible Example (MRE)

Inside a standalone nixvim configuration:

extraFiles = {
    "after/ftplugin/haskell.lua".text = ''
      vim.bo.tabstop = 2
      vim.bo.shiftwidth = 2
      vim.bo.expandtab = true 
    '';
 };

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions