diff .chezmoitemplates/init.lua @ 751:04683b4f8df3

fix: handle chezmoi directory after neodev updates
author zegervdv <zegervdv@me.com>
date Sun, 15 Jan 2023 21:52:40 +0100
parents 240257a1b956
children b9d3378f6c9e
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua	Sat Jan 14 16:27:11 2023 +0100
+++ b/.chezmoitemplates/init.lua	Sun Jan 15 21:52:40 2023 +0100
@@ -1317,7 +1317,7 @@
 
 require('neodev').setup {
   override = function(root_dir, options)
-    if require('neodev.util').has_file(root_dir, '~/.local/share/chezmoi') then
+    if root_dir:find 'chezmoi' then
       options.enabled = true
       options.runtime = true
       options.types = true