2 커밋 e76830de9d ... 43f1acf5c7

작성자 SHA1 메시지 날짜
  Thomas Dy 43f1acf5c7 nixpkgs/neovim: always allow closing > 3 달 전
  Thomas Dy b40129f82c nixpkgs/neovim: ensure help files are detected 3 달 전
2개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 0
      .config/nixpkgs/neovim/neovim.nix
  2. 1 1
      .config/nixpkgs/neovim/plugins.lua

+ 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 = '<>' },
   },
 })