Skip to content

Commit

Permalink
[vim] use 'cond' instead of 'enabled' for work plugin for lazy to not
Browse files Browse the repository at this point in the history
remove work dependencies from lock file
  • Loading branch information
antonk52 committed Jan 16, 2025
1 parent 811e982 commit 6548794
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ require('lazy').setup({
end,
},
{
enabled = vim.env.WORK ~= nil and vim.env.WORK_PLUGIN_PATH ~= nil and vim.uv.fs_stat(
cond = vim.env.WORK ~= nil and vim.env.WORK_PLUGIN_PATH ~= nil and vim.uv.fs_stat(
vim.fn.expand(vim.env.WORK_PLUGIN_PATH)
) ~= nil,
dir = vim.fn.expand(vim.env.WORK_PLUGIN_PATH or 'noop'),
Expand Down
3 changes: 2 additions & 1 deletion nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"lazy.nvim": { "branch": "main", "commit": "d8f26efd456190241afd1b0f5235fe6fdba13d4a" },
"markdowny.nvim": { "branch": "main", "commit": "8ff18e8677cf39821913f387697378fcf3e141a0" },
"mini.nvim": { "branch": "main", "commit": "9e603a31d3fbc7ee61c9b556cd84e97fa2dcff53" },
"none-ls.nvim": { "branch": "main", "commit": "3291afdff94e5083c7d6a4e9e661c3682c4b9b2a" },
"npm_scripts.nvim": { "branch": "main", "commit": "2dfa5d3b09564042c65ef8975eb3948b00f95422" },
"nvim-lspconfig": { "branch": "master", "commit": "339ccc81e08793c3af9b83882a6ebd90c9cc0d3b" },
"nvim-treesitter": { "branch": "master", "commit": "a67a312e7b08cbf2895d8f29a4b1f38f18d9a8e8" },
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
"schemastore.nvim": { "branch": "main", "commit": "b16e414615f4dd7514f9df13dc9fa93e86d05a37" },
"snacks.nvim": { "branch": "main", "commit": "0745505f2f43d2983867f48805bd4f700ad06c73" },
"snacks.nvim": { "branch": "main", "commit": "1da4c8e271b7827be8c660b242758394dfc6d4f0" },
"telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" },
"ts-comments.nvim": { "branch": "main", "commit": "872dcfa0418f4a33b7437fb4d9f4e89f2f000d74" },
"vim-dirvish": { "branch": "master", "commit": "c87a8e103f2e8b44b411a38dda9bbe1229547952" },
Expand Down

0 comments on commit 6548794

Please sign in to comment.