nix-community / nix4nvchad

Install NvChad on Nix-based system [maintainer=@Bot-wxt1221, @MOIS3Y]
https://nvchad.com/
GNU General Public License v3.0
43 stars 5 forks source link

nvchad does not reload correclty #70

Open drishal opened 1 week ago

drishal commented 1 week ago

so I am having a small issue where the changes are not actually being applied in the nvchad after a home manager switch. For example if my chadrc is this

local M = {}

M.base46 = {
    theme = "everforest"
}

return M

the theme still remains as onedark, but if I remove a t from everforest and readd it to force a write manually in ~/.config/nvim/lua/chadrc.lua then it actually loads the everforest theme

hm config:

    programs.nvchad = {
      enable = true;
      chadrcConfig= ''
      ${builtins.readFile ../../config/nvim/nvchad/chadrc.lua}
      '';
      hm-activation = true;
      backup = false;
    };

chardrc:

---@type ChadrcConfig
local M = {}

M.base46 = {
    theme = "everforest",
}

return M
Bot-wxt1221 commented 1 week ago

I don't use chadrc. It was simply placed to ~/.config/nvim/lua. Is that right?

drishal commented 1 week ago

I don't use chadrc. It was simply placed to ~/.config/nvim/lua. Is that right?

yes correct

Bot-wxt1221 commented 1 week ago

Then I don't know why it doesn't work. You may want to ask upstream.

drishal commented 1 week ago

Then I don't know why it doesn't work. You may want to ask upstream.

I feel like nvchad might need a force reload ? 🤔 I think it's not able to read the change unless and until I manually open the actual file in .config/nvim/lua and trigger a save