Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
750:240257a1b956 | 751:04683b4f8df3 |
---|---|
1315 root_dir = require('null-ls.utils').root_pattern('.hg', '.git', 'stylua.toml'), | 1315 root_dir = require('null-ls.utils').root_pattern('.hg', '.git', 'stylua.toml'), |
1316 } | 1316 } |
1317 | 1317 |
1318 require('neodev').setup { | 1318 require('neodev').setup { |
1319 override = function(root_dir, options) | 1319 override = function(root_dir, options) |
1320 if require('neodev.util').has_file(root_dir, '~/.local/share/chezmoi') then | 1320 if root_dir:find 'chezmoi' then |
1321 options.enabled = true | 1321 options.enabled = true |
1322 options.runtime = true | 1322 options.runtime = true |
1323 options.types = true | 1323 options.types = true |
1324 options.plugins = true | 1324 options.plugins = true |
1325 end | 1325 end |