Skip to content

Commit

Permalink
revert: fix!: compatibility with lazy plugin manger > v11.15.0; pin…
Browse files Browse the repository at this point in the history
… lazy.nvim version instead

reverts d4a00d2
  • Loading branch information
ttytm committed Dec 7, 2024
1 parent 91d7274 commit c3dc79d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lua/nxvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ local modules = {
-- Tip: use `gf` over a `config = "<path>"` to go to its location

-- Core ----------------------------------------------------------------------
{ "nxvim/colorschemes", virtual = true, priority = 90, config = "colorschemes", eager = true },
{ "nxvim/client", virtual = true, priority = 95, config = "client", eager = true },
{ "nxvim/keymaps", virtual = true, priority = 80, config = "keymaps", eager = true },
{ "nxvim/autocmds", virtual = true, priority = 80, config = "autocmds", eager = true },
{ "nxvim/options", virtual = true, priority = 80, config = "options", eager = true },
{ "nxvim/lsp", virtual = true, priority = 80, config = "lsp" },
{ dir = "nxvim/colorschemes", priority = 90, config = "colorschemes", eager = true },
{ dir = "nxvim/client", priority = 95, config = "client", eager = true },
{ dir = "nxvim/keymaps", priority = 80, config = "keymaps", eager = true },
{ dir = "nxvim/autocmds", priority = 80, config = "autocmds", eager = true },
{ dir = "nxvim/options", priority = 80, config = "options", eager = true },
{ dir = "nxvim/lsp", priority = 80, config = "lsp" },
{ "tenxsoydev/nx.nvim", priority = 100, config = function() _G.nx = require("nx") end, eager = true },
{ "folke/lazy.nvim" },
{ "folke/lazy.nvim", tag = "v11.14.0" },

-- Miscellaneous -------------------------------------------------------------
-- Dashboard
Expand Down Expand Up @@ -257,7 +257,7 @@ for i, module in ipairs(modules) do

-- handle config string values (paths) else keep the module.config value
if type(module.config) == "string" then
if module[1]:sub(1, #"nxvim") == "nxvim" then module.config = "nxvim." .. module.config end
if module.dir and module.dir:sub(1, #"nxvim") == "nxvim" then module.config = "nxvim." .. module.config end
---@diagnostic disable-next-line: param-type-mismatch
module.config = get(module.config, module.eager)
end
Expand Down

0 comments on commit c3dc79d

Please sign in to comment.