about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-24 10:59:37 -0400
committerGitHub <noreply@github.com>2023-05-24 10:59:37 -0400
commit702a5071e435f960d4f7ac1e63a59bd22a9a93d0 (patch)
tree38f94ab17912325906fba7db22bb6efcc8552273 /pkgs/applications/editors
parentfcc11d753680a6d424dd036647ad4b259a39ab2f (diff)
parent540301ac03e3c598e5756f0c96bb772764b908a1 (diff)
Merge pull request #233739 from azuwis/lazy-nvim
vimPlugins.lazy-nvim: Fix lazy.nvim try to write helptags on readonly fs
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/vim/plugins/overrides.nix4
-rw-r--r--pkgs/applications/editors/vim/plugins/patches/lazy-nvim/no-helptags.patch14
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix
index 4e6fee9b88fec..6ec20ca15db24 100644
--- a/pkgs/applications/editors/vim/plugins/overrides.nix
+++ b/pkgs/applications/editors/vim/plugins/overrides.nix
@@ -642,6 +642,10 @@ self: super: {
     dependencies = with self; [ nvim-lspconfig ];
   });
 
+  lazy-nvim = super.lazy-nvim.overrideAttrs (old: {
+    patches = [ ./patches/lazy-nvim/no-helptags.patch ];
+  });
+
   lean-nvim = super.lean-nvim.overrideAttrs (old: {
     dependencies = with self; [ nvim-lspconfig plenary-nvim ];
   });
diff --git a/pkgs/applications/editors/vim/plugins/patches/lazy-nvim/no-helptags.patch b/pkgs/applications/editors/vim/plugins/patches/lazy-nvim/no-helptags.patch
new file mode 100644
index 0000000000000..7336f0e75c415
--- /dev/null
+++ b/pkgs/applications/editors/vim/plugins/patches/lazy-nvim/no-helptags.patch
@@ -0,0 +1,14 @@
+diff --git a/lua/lazy/help.lua b/lua/lazy/help.lua
+index 4a289eb..5ddc168 100644
+--- a/lua/lazy/help.lua
++++ b/lua/lazy/help.lua
+@@ -38,9 +38,6 @@ function M.index(plugin)
+ end
+ 
+ function M.update()
+-  if Config.plugins["lazy.nvim"] then
+-    vim.cmd.helptags(Config.plugins["lazy.nvim"].dir .. "/doc")
+-  end
+   if Config.options.readme.enabled == false then
+     return
+   end