~ruther/guix-local

ref: 70498a4ade9f4e4760878b2fb286d2f0e7603fdf guix-local/gnu/packages/aux-files/guix-nvim.vim -rw-r--r-- 427 bytes
70498a4a — Andreas Enge gnu: python-pyqtwebengine-6: Disinherit from python-pyqtwebengine. 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
lua << EOF
  -- This appends all applicable neovim paths to the runtimepath.
  for _, directory in pairs({"/run/current-system/profile", "~/.guix-profile", "~/.guix-home/profile", vim.env.GUIX_PROFILE, vim.env.GUIX_ENVIRONMENT}) do
    local rtp = vim.fs.abspath(directory .. "/share/nvim/site")
    local stat = vim.uv.fs_stat(rtp)
    if stat and stat.type == "directory" then
      vim.opt.rtp:append(rtp)
    end
  end
EOF