2 Commit-ok e76830de9d ... 43f1acf5c7

Szerző SHA1 Üzenet Dátum
  Thomas Dy 43f1acf5c7 nixpkgs/neovim: always allow closing > 3 hónapja
  Thomas Dy b40129f82c nixpkgs/neovim: ensure help files are detected 3 hónapja

+ 9 - 0
.config/nixpkgs/neovim/neovim.nix

@@ -88,6 +88,15 @@ let
       set runtimepath=${placeholder "out"}/lib,$VIMRUNTIME
       set packpath=${placeholder "out"}/lib
 
+      lua <<EOF
+      -- make sure docs in our packpath are marked as help
+      vim.filetype.add({
+        pattern = {
+          [vim.o.packpath:gsub('[%.%-]', '%%%0') .. '/pack/.*/doc/.*%.txt'] = 'help'
+        }
+      })
+      EOF
+
       ${initText}
     '';
 

+ 1 - 1
.config/nixpkgs/neovim/plugins.lua

@@ -225,7 +225,7 @@ require('mini.pairs').setup({
     -- autopair <> if preceded by a character, otherwise it might be a regular
     -- comparison operation
     ['<'] = { action = 'open', pair = '<>', neigh_pattern = '%w.' },
-    ['>'] = { action = 'close', pair = '<>', neigh_pattern = '%w.' },
+    ['>'] = { action = 'close', pair = '<>' },
   },
 })