{ pkgs, config, lib, ... }: let cfg = config.soispha.programs.nvim; in { home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable { # TODO: package ltex_extra though a module extraPlugins = [ pkgs.vimPlugins.ltex_extra-nvim ]; plugins.lsp.servers.ltex.onAttach.function = builtins.readFile ./lua/ltex_extra.lua; }; }