We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1602120 commit 51cf72dCopy full SHA for 51cf72d
private_dot_config/nvim/lua/plugins.lua.tmpl
@@ -13,9 +13,14 @@ return require('packer').startup(
13
local use = require('packer').use
14
local plugins = io.popen('find "'..'{{ .chezmoi.homeDir }}/.config/nvim/lua/plugins-d/'..'" -type f')
15
for plugin in plugins:lines() do
16
- local file = string.match(plugin,"({{ .chezmoi.homeDir }}/[.]config/nvim/lua/.*_.*[.]lua)")
17
- if file ~= nil then
18
- use(dofile(file))
+ local part1, part2 = string.match(plugin,"{{ .chezmoi.homeDir }}/[.]config/nvim/lua/(.*)_(.*)[.]lua")
+ if part1 ~= nil and part2 ~= nil then
+ plugin = part1 .. '_' .. part2
19
+ else
20
+ plugin = ''
21
+ end
22
+ if plugin ~= '' then
23
+ use(require(plugin))
24
end
25
26
if is_startup then
0 commit comments