Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on NixOS #20

Open
mairs8 opened this issue Nov 7, 2024 · 1 comment
Open

Doesn't work on NixOS #20

mairs8 opened this issue Nov 7, 2024 · 1 comment

Comments

@mairs8
Copy link

mairs8 commented Nov 7, 2024

The vim-startuptime looks for binaries in /usr/bin. NixOS is non FHS compliant and keeps it's binaries in /nix/store. When trying to run the pseudo code below on NixOS, it throws error: no file: /usr/local/lib/lua/5.1/loadall.so.

How can i make :StartupTime use the /nix/store locations?

 '/nix/store/somehash/somebin'
      '--startuptime'
      '<OUTPUT>'
      '-c'
      'if exists('\''*timer_start'\'') | call timer_start(0, {-> execute('\''qall!'\'')}) | else | autocmd VimEnter * qall! | endif'
@dstein64
Copy link
Owner

I'm unable to reproduce the problem.

On NixOS, I added the following lines to /etc/nixos/configuration.nix, for installing Vim, Neovim, and Git:

  environment.systemPackages = with pkgs; [
    vim
    neovim
    git
  ];

I then ran sudo nixos-rebuild switch.

Next, I installed vim-startuptime for Vim and Neovim.

mkdir -p ~/.vim/pack/plugin/start
git clone 'https://github.com/dstein64/vim-startuptime.git' ~/.vim/pack/plugin/start/vim-startuptime

mkdir -p ~/.config/nvim/pack/plugin/start
git clone 'https://github.com/dstein64/vim-startuptime.git' ~/.config/nvim/pack/plugin/start/vim-startuptime

The :StartupTime command worked without issue from both Vim and Neovim.

@mairs8, can you provide steps for reproducing the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants